Delay JavaScript Execution compatibility exclusions

When using the Delay JavaScript Execution feature you may notice that it takes some time, or user's interaction for some elements, e.g. a menu, or a form that is located in the viewport, to appear.

You can prevent that, by clicking on the plugin/theme/service-specific boxes in the One-click exclusions section under the Delay JavaScript execution feature, available from WP Rocket 3.13 and above:

one click exclusions section

If you're using an older WP Rocket version, you can add the plugin/theme/service-specific exclusions in the  Excluded JavaScript files text area.

Note:  you don't need to specify entries to the Excluded JavaScript files box if you've already selected the checkbox for the theme/plugin/service in the One-click exclusions section.

excluded JavaScript files box

Please note that for compatibility reasons, some scripts are automatically excluded in WP Rocket’s core. You can check the current exclusions here, by searching for the array delay_js_exclusions.

Tip: if you can't find a specific dependency, plugin, theme or service in the One-click exclusions section, then you can find any exclusion using the techniques described in this article.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.