Archived topic
Error in inspect when looking at site- Jquery not defined
3 replies · Started by mmarvel on March 9, 2018
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 there,
Have you tried #1 here to see if it's from a plugin?
https://docs.generatepress.com/article/debugging-tips/
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!