Title: jQuery not found
Last modified: August 31, 2016

---

# jQuery not found

 *  Resolved [petersonb395](https://wordpress.org/support/users/petersonb395/)
 * (@petersonb395)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-not-found-2/)
 * jQuery is not working correctly. Specifically, I use the plugin Envira gallery,
   which previously was working fine. Now, the galleries are not loading. When using
   inspect element on the page, the following error appears:
 * ReferenceError: Can’t find variable: jQuery
 * Edit: Link to the error
 * [http://rbdimmitt.com/golf-course-wildlife-ii/](http://rbdimmitt.com/golf-course-wildlife-ii/)
 * Any help with this is appreciated

Viewing 14 replies - 1 through 14 (of 14 total)

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-not-found-2/#post-6959052)
 * You need to show us the webpage that has the issue
 *  Thread Starter [petersonb395](https://wordpress.org/support/users/petersonb395/)
 * (@petersonb395)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-not-found-2/#post-6959054)
 * Oops. Yep sorry here’s the link.
 * [http://rbdimmitt.com/golf-course-wildlife-ii/](http://rbdimmitt.com/golf-course-wildlife-ii/)
 * There’s a small white dot or “-” where the gallery should be
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-not-found-2/#post-6959057)
 * Try deactivating all of your plugins to explore whether any could be responsible.
   If none are, keep all plugins deactivated and switch to the Twenty Fifteen/ Fourteen
   theme to see whether it could an issue with your theme.
 *  Thread Starter [petersonb395](https://wordpress.org/support/users/petersonb395/)
 * (@petersonb395)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-not-found-2/#post-6959060)
 * Yep that’s why I posted under Time’s Square theme. Did the debug of deactivating
   plugins, plus used a different theme.
 * No issues with plug ins. Working correctly with other themes as well.
 * Then when I went back to Time’s Square, issue returned. To be clear, I’m using
   a child of it as well, so I activated just Times Square to be extra sure. Still
   not working.
 * The theme is the issue.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-not-found-2/#post-6959063)
 * There’s a difference between the jQuery library you’re using and the one that
   is bundled with WordPress…
 * Yours: [http://rbdimmitt.com/wp-includes/js/jquery/jquery.js?ver=1.11.3](http://rbdimmitt.com/wp-includes/js/jquery/jquery.js?ver=1.11.3)
   
   WordPress: [https://core.svn.wordpress.org/trunk/wp-includes/js/jquery/jquery.js](https://core.svn.wordpress.org/trunk/wp-includes/js/jquery/jquery.js)
 * Is that the issue?
 *  Thread Starter [petersonb395](https://wordpress.org/support/users/petersonb395/)
 * (@petersonb395)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-not-found-2/#post-6959065)
 * How do I test if that’s the issue?
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-not-found-2/#post-6959066)
 * Actually no, WordPress 4.4.1 is not at trunk so forget about that above comment.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-not-found-2/#post-6959067)
 * Fyi jQuery is infact defined after your page has loaded, just not at the time
   of the issue.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-not-found-2/#post-6959069)
 * It’s a problem on [the theme’s demo](http://wp-themes.com/times-square/) too.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-not-found-2/#post-6959070)
 * Would you mind testing something by removing some code from your functions.php
   file?
    This is the bit:
 *     ```
       if(!(is_admin())) {
       	function defer_parsing_of_js($url) {
       		if ( FALSE === strpos( $url, '.js' ) ) {
       			return $url;
       		}
       		return "$url' defer='defer";
       	}
       	add_filter( 'clean_url', 'defer_parsing_of_js' , 11, 1 );
   
       }
       ```
   
 * It should be right at the bottom of the file.
 *  Thread Starter [petersonb395](https://wordpress.org/support/users/petersonb395/)
 * (@petersonb395)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-not-found-2/#post-6959071)
 * Good catch. That fixed it.
 * Interesting note, every time I have updated this theme (which I did today), I
   had to delete something regarding the ‘clean_url” bit every time in order for
   the site to work.
 * Thanks a bunch for the help!
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-not-found-2/#post-6959072)
 * [@faca5](https://wordpress.org/support/users/faca5/), Looks like an issue in 
   your theme.
 *  Theme Author [faca5](https://wordpress.org/support/users/faca5/)
 * (@faca5)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-not-found-2/#post-6959175)
 * Hello.
 * Thank you for your report.
 * Function “clean_url” has been removed from theme.
 * Please update to Times Square v3.3.
 *  Thread Starter [petersonb395](https://wordpress.org/support/users/petersonb395/)
 * (@petersonb395)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-not-found-2/#post-6959250)
 * Just updated. Works great!
 * Thanks

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘jQuery not found’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/times-square/3.5/screenshot.png)
 * Times Square
 * [Support Threads](https://wordpress.org/support/theme/times-square/)
 * [Active Topics](https://wordpress.org/support/theme/times-square/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/times-square/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/times-square/reviews/)

 * 14 replies
 * 3 participants
 * Last reply from: [petersonb395](https://wordpress.org/support/users/petersonb395/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-not-found-2/#post-6959250)
 * Status: resolved