Page specific JS excludes, or plugin-specific expressions?
-
Hi Frank,
Thank you for the great plugin! I have a lot of JS intensive content on the site that I’m building, and your JS optimization makes a huge difference.
I use Essential Grid (a plugin by ThemePunch) on several of my pages (example: https://highoutput.netfirms.com/anew/gear/ ), but it breaks when I activate the JS optimization. I tried many different plugin-specific expressions in the exclude scripts field (including ‘essential-grid,’ ‘essential-grid/JS/,’ and several specific .js scripts), but the only thing that fixed the issue was excluding jquery.js.
The problem is that excluding jquery.js makes a huge difference on every page and dramatically increases load time and script requests. On one particularly heavy page, it increases the number from requests from 20(ish) to over 90…
I have two ideas to help resolve this, but I’m not sure if either of them are possible:
a) Is there a way to get Essential Grid working without excluding jquery.js? I’m new to all of this, so maybe I didn’t get all of the scripts in the exclude field correctly?
or
b) Is it possible to exclude jquery.js on specific pages only?
I do know that forcing the JS to load early also allows the plugin to work, but the result across the site is similar to universally excluding jquery (too much site-wide performance decrease).
Please let me know what you think!
Thank you,
Alexa
- The topic ‘Page specific JS excludes, or plugin-specific expressions?’ is closed to new replies.