WP Rocket - Delay JavaScript execution Blog page

Hi,

When using this feature in WP Rocket the blog archive page (https://www.hofverbergphotography.se/blogg/) doesn’t load until I scroll on mobile.
I should add something as exclusion but not sure what I need to add here.

"Excluded JavaScript Files

Specify URLs or keywords that can identify inline or JavaScript files to be excluded from delaying execution (one per line)."

Hope you can help with this.

Thanks!

Hey @Hugoboss,

You need to exclude all JS files in the Pro directory and not just specific JS because the file name always changes. You can consult with WP Rocket documentation or support on how to do that.

If your optimization plugin affects inline JS also, consult with the plugin’s doc on how to exclude inline scripts with IDs like highlighted in the screenshot below.

Just note that we cannot provide support for website optimization is that extends beyond theme functionality.

Thank you for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.