Plugin Scripts Messing Up Performance Optimization
-
Hello,
I’m developing a custom theme for my company’s web site based upon the Underscores starter theme and Bootstrap. I’ve been running performance audits in Google Developer tools and one of the audits says that I’m loading external javascript before external css.
Now, I’ve already made sure to enqueue my styles before my scripts, but one of the plugins I’m using – Easy Twitter Feed Widget – is hooking one of their script dependencies before my styles.
I see the bit of code that is doing this and I could hook it in a different way, but my changes would be lost every time the author updates their plugin. Is there anyway to override this behavior other than editing the plugin?
Thanks,
DavePS WordPress also seems to be injecting their emojis javascript before my styles. Any way to move this to the bottom?
The topic ‘Plugin Scripts Messing Up Performance Optimization’ is closed to new replies.