Mobile app version of vmapp.org
Login or Join
Sarah324

: How can I test my site for dependency on jquery? One of our developers used jquery on a couple of pages and now we're not sure which pages those are. Is there a way to test for dependencies?

@Sarah324

Posted in: #Jquery

One of our developers used jquery on a couple of pages and now we're not sure which pages those are.

Is there a way to test for dependencies?
I.e., given a collection of pages, which need jquery?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Sarah324

2 Comments

Sorted by latest first Latest Oldest Best

 

@BetL925

To expand on Martijn's comment...

jquery code heavily uses a function name $ . jquery code is littered with experssions like $(this) and $('#foo'). If you search your files for $( you will likely identify any that have jquery code embedded in them.

10% popularity Vote Up Vote Down


 

@Cugini213

If he used some code based on JQuery, he was forced to implement JQuery into the head of these given pages, where JQuery based code worked. Non case-sensitive search in all files for jquery should do the trick.

Beside of this, developer tools (chrome or ff) would rise an error alert, if any code misses its library. But so you should go page by page.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme