Rocket loader makes my website fast but putting rocket-loader.min.js in unnecessary places.
Any setting or code to stop it.
Thanks in advance.
You can either add a Page Rule for that URL that turns Rocket Loader ‘Off’, or inline some code so it ignores a .js reference:
https://support.cloudflare.com/hc/en-us/articles/200169436-How-can-I-have-Rocket-Loader-ignore-specific-JavaScripts-
Or…turn Rocket Loader off, then use a Page Rule to enable it for the front page only.
With just three Page Rules on a free plan, you’ll have to weigh your options.
Hi Sdayman, Thank you very much for your reply. The best solution would be " inline some code so it ignores a .js reference: "
If you paste the code that would be great if not I will get one of developers.
Thanks again
Safi
The script code is in the Cloudflare Support link I posted above.
Hi Sdayman
The code does work
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.