Masonry Blog Layout and Asynchronous Plugin conflicts

Hello,

I’m trying to reduce the load time of my site and both Google and GTMetrics recommend asynchronous JS loading.

I’ve installed several different plugins to do this but every time I do, the blog stops loading in Safari (still works in Chrome).

When I disable the plugins, the blog returns.

Right now I have the plugins deactivated so it’s working but I’m not sure what to do.

Thanks!
Braden Chase

Hi There,

You can disable the minification of CSS and JS file to avoid this issue.

I will give you all JS files list of the theme which should not be minified:

  1. wp-content/themes/x/framework/js/dist/site/x-body.min.js
  2. wp-content/themes/x/framework/js/dist/site/x-head.min.js?
  3. wp-content/themes/x/framework/js/dist/site/x-icon.min.js
  4. wp-content/themes/x/framework/legacy/cranium/js/dist/site/x-body.min.js
  5. wp-content/themes/x/framework/legacy/cranium/js/dist/site/x-head.min.js

Also here is the list of the JS files of the Cornerstone which should be excluded:

  1. wp-content/plugins/cornerstone/assets/dist/js/site/cs-body.js
  2. wp-content/plugins/cornerstone/assets/dist/js/site/cs-head.js

Thank you.

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