Title: How to Combine external JavaScript
Last modified: August 21, 2018

---

# How to Combine external JavaScript

 *  Resolved [alexlomt](https://wordpress.org/support/users/alexlomt/)
 * (@alexlomt)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/how-to-combine-external-javascript/)
 * Hello. I have installed and activated this plugin and configured it. After going
   to Pingdom, I still get the error “Combine external JavaScript”. How do I make
   it so the external JavScrpit is combined and the error doesn’t show up anymore
   and my website speed increased?
 * Thank you very much.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhow-to-combine-external-javascript%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/how-to-combine-external-javascript/#post-10610863)
 * you seem to be using W3 Total Cache’s minify, not Autoptimize Alex? Disable all
   minify features in W3TC and make sure AO is active (view source and you should
   see `autoptimize` in your HTML)
 * frank
 *  Thread Starter [alexlomt](https://wordpress.org/support/users/alexlomt/)
 * (@alexlomt)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/how-to-combine-external-javascript/#post-10611346)
 * Hello. Thank you for your reply. I have done that, but the warning still shows
   up on Pingdom and the website loading speed is still very slow. I even enabled
   Jetpack’s CDN, but to no avail.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/how-to-combine-external-javascript/#post-10611500)
 * ah, you have revolution slider; that uses JS to load other JS-files and as such
   AO doesn’t “see” those extra JS-files, leaving them un-optimized.
 * regarding loading speed; one of the perfomance killers is [https://hsa.hr/?custom-css=1f6f342b02](https://hsa.hr/?custom-css=1f6f342b02),
   try moving the CSS there to WordPress core’s “additional CSS” in the customizer.
   2nd performance issue is an admin-ajax.php call that takes 3s to load, try identifying
   the plugin that does that and zap it 🙂
 *  Thread Starter [alexlomt](https://wordpress.org/support/users/alexlomt/)
 * (@alexlomt)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/how-to-combine-external-javascript/#post-10612919)
 * Hello. So I should kill revolution slider, that custom CSS and the specified 
   ajax or something plugin? How can I find out which plugin is admin-ajax.php?
 *  Thread Starter [alexlomt](https://wordpress.org/support/users/alexlomt/)
 * (@alexlomt)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/how-to-combine-external-javascript/#post-10613066)
 * How can I move the CSS specified? [https://hsa.hr/?custom-css=1f6f342b02](https://hsa.hr/?custom-css=1f6f342b02)
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/how-to-combine-external-javascript/#post-10613334)
 * getting rid of revolution slider would help performance, yes.
 * regarding admin-ajax.php; you’d have to either use the browser developer console
   to look at the POST request parameters or you could disable/ enable your plugins
   one by one until you don’t see the long admin-ajax.php call any more?
 * regarding the CSS; same thing (enabling/ disabling plugins and/ or briefly switching
   themes).
 *  Thread Starter [alexlomt](https://wordpress.org/support/users/alexlomt/)
 * (@alexlomt)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/how-to-combine-external-javascript/#post-10613439)
 * Hello. I have done all of that, disabled rev slider and admin-ajax.php. I deleted
   all of the custom CSS I added, but the site still loads slowly. Can you take 
   a look at it please and check what else is slowing the site down?
 * Thank you very much.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/how-to-combine-external-javascript/#post-10613521)
 * 4.7s load time, see [https://www.webpagetest.org/result/180822_GH_88d7ac60702a933a869f6b2264538c49/](https://www.webpagetest.org/result/180822_GH_88d7ac60702a933a869f6b2264538c49/)
   so not too bad actually.
 * you should be able to improve on image weight somewhat (esp. /wp-content/uploads/
   2018/07/blackboard-business-chalkboard-355988.jpg is way to big).
 * as you can see in the waterfall chart you’re loading a lot of google fonts, try
   trimming down on that.
 *  Thread Starter [alexlomt](https://wordpress.org/support/users/alexlomt/)
 * (@alexlomt)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/how-to-combine-external-javascript/#post-10613586)
 * How can I kill all of the google fonts?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/how-to-combine-external-javascript/#post-10613587)
 * depends on how they are loaded, but you could start by trying out the Google 
   Font options on AO’s Extra tab?
 *  Thread Starter [alexlomt](https://wordpress.org/support/users/alexlomt/)
 * (@alexlomt)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/how-to-combine-external-javascript/#post-10613645)
 * I have it turned on but obviously it’s not working as supposed. How do I fix 
   it?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/how-to-combine-external-javascript/#post-10614292)
 * In that case you’ll have to try to identify the plugin(s) that are adding those,
   check those plugins for options to turn google fonts of and if that option isn’t
   there, ask the developers of those plugins for help?

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘How to Combine external JavaScript’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [combine](https://wordpress.org/support/topic-tag/combine/)
 * [external](https://wordpress.org/support/topic-tag/external/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 12 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/how-to-combine-external-javascript/#post-10614292)
 * Status: resolved