Site logo

Archived topic

Error in inspect when looking at site- Jquery not defined

3 replies · Started by mmarvel on March 9, 2018

Viewing posts 1–4 of 4

I was looking at code for a different issue and saw this but don't know why its showing. The site seems to be working so I'm not sure what's failing.

Not sure how to find out what's failing. Any idea where to look?

(index):20 Uncaught ReferenceError: jQuery is not defined
at (index):20
(index):43 Uncaught ReferenceError: jQuery is not defined
at (index):43

Thanks. Martha

Hi Leo

Yes, I use WP Rocket for caching and had to exclude js files from defer for the generatepress theme and fontawesome.

// * Replace, or multiply and edit below line as needed to exclude fill */

$excluded_files[] = '/wp-content/themes/generatepress/js/classlist.min.js';
$excluded_files[] = '/releases/v5.0.8/js/all.js';
// STOP EDITING

Glad you figured out!

This archived topic is closed to new replies.