
-
AuthorPosts
-
May 11, 2025 at 3:39 am #1484006
Hello,
i notice that when i inspect my site, i have this error:Uncaught ReferenceError: jQuery is not defined
<anonymous> https://azure-dunlin-105572.hostingersite.com/:126I tried two or three things i found on internet about this but noting worked..
how can i solce this problem?Thanks!
May 11, 2025 at 11:00 am #1484010May 11, 2025 at 12:31 pm #1484011May 11, 2025 at 2:46 pm #1484022Hi,
Typically this occurs when the jQuery script is added before the main jQuery code is.
Check if you have a caching plugin that is forcing jQuery into the footer or delaying it, if you are not sure try disabling it.
Then check if Enfold Theme Options ▸ Performance ▸ Load jQuery in your footer is enabled.
also try disabling Enfold Theme Options ▸ Performance ▸ JS & CSS file merging and compression, and check again.
If this doesn’t help, include a admin login in the Private Content area so we can examine.Best regards,
MikeMay 11, 2025 at 6:26 pm #1484029Hi,
i enabled “load Jquery in the footer” and disable JS and CSS file merging and compression in the theme option but i still have this error.
I verified in my caching plugin and jquery seems to be exclude…I prefer to let you apply the best settings for this because i don’t understand all this!
Thanks!!
May 11, 2025 at 8:08 pm #1484033Hi,
Thanks, if I disable your LiteSpeed Cache plugin the jQuery error doesn’t show, but I don’t see any settings for it in your plugin. So try reviewing the settings and try disabling them one by one to find the setting causing this, or you can the plugin support forum to find the setting.
I don’t know this plugin so they would know more about this then us.Best regards,
MikeMay 11, 2025 at 8:27 pm #1484034Hi,
On litespeed cache , when i don’t defer java script, i don’t have this error anymore.Is it really important to defer javascript?
May 11, 2025 at 8:47 pm #1484037 -
AuthorPosts
- You must be logged in to reply to this topic.