I would like to disbale rocket loader for the header of my website

I would like to disable rocket loader for the header section of my website because whenever it’s enabled, the header menu area does not stick to the website on mobile devices(my iPhone). I want the header to always stick to the top while scrolling.

If you want to disable it only for your header, you’d need to identify the specific scripts it’s affecting and then disable Rocket Loader for those via the method detailed here: Ignore JavaScripts in Rocket Loader · Cloudflare Fundamentals docs. However, since testing and experimenting with your website code is required, you might find it easier to just disable Rocket Loader entirely. You can also consider using Page Rules in Cloudflare to disable Rocket Loader for specific URLs.

1 Like