Title: Combine external JavaScript
Last modified: October 20, 2016

---

# Combine external JavaScript

 *  Resolved [rpvp](https://wordpress.org/support/users/rpvp/)
 * (@rpvp)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/combine-external-javascript-2/)
 * After install, ran a pingdom test and found that there were 7 js files from apis.
   google and 3 from my domain.
 * re: The 7 from google. I also have the “use google libraries” plugin installed.
   Is that what’s causing this? Should that plugin be used — supposedly it helps
   performance, but what are your thoughts?
 * re: The 3 from my domain. They are:
 *     ```
       https://mydomain.com/wp-content/cache/autop ... /autoptimize_6aba52f733e07fd32b75a1012a588d09.js
       https://mydomain.com/wp-includes/js/jquery/jquery.js?ver=1.12.4
       https://mydomain.com/wp-includes/js/wp-emoji-release.min.js?ver=6e2eea2fb8b8ce90b93e6b88821060fd
       ```
   
 * How do I deal with these?

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/combine-external-javascript-2/#post-8335230)
 * regarding “use google libraries”; if you’re combining JS (as AO is), offloading
   resources elsewhere (google or other CDN) can be counterproductive, so try without
   and compare results
 * regarding the 3 from your domain; the first one is your aggregated & minified
   JS as created by AO. the 2nd one is jquery, which AO by default excludes (to 
   avoid sites breaking), the 3rd one is loaded by wp core and cannot be autoptimized
   because it is loaded by JS itself. there’s a wordpress plugin to remove the emoji-
   stuff if you’d want to (I use it).
 * hope this clarifies,
    frank
 *  Thread Starter [rpvp](https://wordpress.org/support/users/rpvp/)
 * (@rpvp)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/combine-external-javascript-2/#post-8335571)
 * Thanks. I’ll search for that emoji plugin.
 *  Thread Starter [rpvp](https://wordpress.org/support/users/rpvp/)
 * (@rpvp)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/combine-external-javascript-2/#post-8335653)
 * Got rid of the emoji stuff with this plugin:
    `https://wordpress.org/plugins/
   disable-emojis/`
 * I’m assuming that’s the one you use since it’s the only recent one.
 * Deactivated “use google libraries” and purged cache, but still getting those 
   first 7. Not sure how to handle those.
 * [Here they are if interested.](http://bit.ly/2ec80zb)
    -  This reply was modified 9 years, 5 months ago by [rpvp](https://wordpress.org/support/users/rpvp/).
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/combine-external-javascript-2/#post-8335789)
 * did [a quick test on webpagetest.org](https://www.webpagetest.org/result/161020_BM_3B1X/1/details/#waterfall_view_step1),
   looks like your google+ button is causing those rpvp 🙂
 *  Thread Starter [rpvp](https://wordpress.org/support/users/rpvp/)
 * (@rpvp)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/combine-external-javascript-2/#post-8335824)
 * ahh, thanks. Well, what’s the preferred method for having a G+1 button? Is there
   a way to have one that’s doesn’t slow or interfere with loading? How do you do
   it, if you do?
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/combine-external-javascript-2/#post-8336099)
 * I don’t have those, but in general it’s better (from a performance pov) to have“
   share”-buttons (not only for g+, but also for fb & twitter) instead, as those
   don’t require all those extra calls.
 *  Thread Starter [rpvp](https://wordpress.org/support/users/rpvp/)
 * (@rpvp)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/combine-external-javascript-2/#post-8336250)
 * Great, thanks. Fantastic support for this plugin. 5 stars for sure!

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

The topic ‘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/)

 * 7 replies
 * 2 participants
 * Last reply from: [rpvp](https://wordpress.org/support/users/rpvp/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/combine-external-javascript-2/#post-8336250)
 * Status: resolved