Disable Cloudflare Rocket Loader for jQuery javascript and make it load first


I use Cloudflare Rocket Loader to speed up Javascript on my site.

The problem is, it loads certain scripts that need jQuery before loading jQuery itself making them not working correctly.

As soon as it is possible to disable Rocket Loader for specific script adding data-cfasync="false" to the <script src=""> I would like to know how can I add it to jQuery scripts as WordPress doesn’t simply load the jQuery via the script tag I guess.

At the moment my website loads jquery-migrate.min.js and jquery.js

PS there is a similar question but it’s almost 7yrs ago so, it may be outdated at this point Cloudflare's Rocket Loader + WordPress -> Ignore scripts?

NicoCaldo 2 months 0 Answers 19 views 0

Leave an answer