Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Are there any good plugins for bundling javascript packages? WordPress

  • SOLVED

see our site, betafb.wpengine.com (just need to create an account through linkedin to login).

On the main page load (the logged-in one with search, articles, events, etc -- not the pre-login welcome page), you can see in the network load a ton of different jquery and other packages that are each loading separately, on pages throughout the site, which is definitely hurting performance.

looking for some way we can bundle up at least some of the core ones, to hopefully speed up delivery, maybe even allow improved cache-ing?

Answers (3)

2015-03-06

Navjot Singh answers:

You can try this plugin: https://wordpress.org/plugins/wp-cdnjs/

2015-03-07

Glenn Tate answers:

I've tried 6 or more of them over the years and they always break my sites. It' more important that the scripts are included properly (using "wp_enqueue_script" or "wp_enqueue_style" function).

2015-03-08

Romel Apuya answers:

[[LINK href="https://wordpress.org/plugins/autoptimize/"]]https://wordpress.org/plugins/autoptimize/[[/LINK]]

and if your javascripts are added via enqueue
then you can use

[[LINK href="https://wordpress.org/plugins/js-css-script-optimizer/"]]https://wordpress.org/plugins/js-css-script-optimizer/[[/LINK]]