Whenever I activate "Load Javascript Deferred" in WP Rocket it breaks the layout of Toolset views. Specifically, a grid layout with various columns becomes one column.
I looked at the settings available with WP Rocket for optimising JavaScript, and I can see that when active you can provide a list of exclusions, which you've done.
However, one of the scripts (frontend.js) isn't enqueued normally, it is added via an inline script in the page head, and I suspect that is the one causing the problem.
You can disable the custom way it is enqueued by adding the following to your wp-config.php:
define( 'TB_SCRIPT_STYLE_LAZY_LOAD', false );
Do you want to try that? It should be enqueued normally in that case, which should make it amenable to including in your list of exceptions for that setting.
Sorry I haven't had a chance to follow up before now.
Did you update Toolset Blocks? The link I shared had version 1.6.6 appended, but I see you are now on version 1.6.8 of Blocks.
I'm not sure how precise the files you added to the WP Rocket settings need to be and what kind of wildcards you can use, but it would be better not to include versions at all, otherwise you'll need to be updating them after every plugin update. (That doesn't just apply to Toolset.)
I also said you would need to add a constant to your wp-config.php, and it doesn't look like you've done that.
The topic ‘[Closed] WP Rocket Javascript deferred issue’ is closed to new replies.