Wordpress LScache Plugin: Problem with JQuery remote loading
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hello. If you set JQuery Remote Import in the CDN tab of LiteSpeed Cache plug-in to Google or Cdnjs, a 404 error occurs. https://ajax.googleapis.com/ajax/libs/jquery/1.12.4-wp/jquery.min.js https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4-wp/jquery.min.js I confirmed that there is no link destination either, and I thought that it would be necessary to modify the URL of the plug-ins JQuery remote read destination, so I wrote it. The valid URLs I found out were: https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js Please modify the connection destination URL for the plugins jquery library. I am not good at English, so please forgive me if you have any difficulty reading. This topic was modified 3 years, 6 months ago by LeoRaphael. @leoraphael Same here! This just broke our entire site, since remote jQuery failed to load and therefore all jQuery-dependant scripts threw an error. Please fix it asap. Right now you can fix the issue by turning the Load JQuery Remotely under CDN tab to OFF. This broke my site too. But what happened exactly? It looks like google never had the file or litespeed somehow updated their plugin externally? Anyway, yes by turning it off, it works again. @prowebassist @daganloygmailcom I do not know the reason, but after having been updated to WordPress 5.2.1, a problem occurred in the website suddenly. While investigating the cause, I confirmed that there was an error in the operation of JQuery, and arrived at the solution by the setting change of LiteSpeed Cache plug-in. Since disabling the plug-in worked correctly, as a result of thoroughly verifying the setting items, the problem was solved by not using JQuery Remote Import as Google or Cdnjs. Hi there, I had the same issue, in the latest wordpress core in wp-includes/script-loader.php on line 1015 There are the following two lines that correspond to the incorrect jquery version $scripts->add( jquery, false, array( jquery-core, jquery-migrate ), 1.12.4-wp ) $scripts->add( jquery-core, /wp-includes/js/jquery/jquery.js, array(), 1.12.4-wp ) the 4th argument is the version number in the plugin it looks like youre pulling the version number from wordpress core in litespeed-cache-cdn.class.php line 590 Kind Regards, oliver fixed https://www.youtube.com/watch?v=GsBW3XIrXEM Hi, the fix is in https://github.com/litespeedtech/lscache_wp/commit/5f648b47da8624975c4671adf6665d135d57b3de and will be released today in v2.9.8 Also thanks @tomrobak for the quick fix video :p @oliverhtml @tomrobak @hailite Thank you for your reply and explanation. I will temporarily stop using the external jquery and wait for the plugin to be updated. It was saved by everyones quick response. Im really thankful to you. Yes, well all be waiting for 2.9.8 Thank you. I am not sure this is a proper way to fix the issue. Jquery 1.12.4 is no longer maintained, thats why WordPress applied some security patches from later versions to it and started delivering it as 1.12.4-wp . Removing -wp switches you to unpatched version from Google CDN. Please read here ? https://core.trac.wordpress.org/ticket/47342#comment:3 That is true. As commented in the end, maybe we should wait for the latest jquery in WP v5.4/5.5 to solve this issue? As to use external jQuery, I am not sure where we can find the wp customized patch one.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference