Title: Combining Javascript Files
Last modified: November 15, 2017

---

# Combining Javascript Files

 *  Resolved [jstakel](https://wordpress.org/support/users/jstakel/)
 * (@jstakel)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/combining-javascript-files/)
 * Hi Frank,
 * Thank you for the plugin – it’s fantastic and I’m enjoying the resulting speed
   immensely! I had a question about javascript files. I understand that you do 
   not combine external files and totally get that. When I test my site with Pingdom,
   however, I’m getting a notification that 5 js files from my domain have not been
   combined. Have I done something wrong?
 * [http://www.newsite.womanmysalonandspa.ca/wp-con](http://www.newsite.womanmysalonandspa.ca/wp-con)…/
   autoptimize_9ce0149e0560f598947f398c17bf79a5.js
    [http://www.newsite.womanmysalonandspa.ca/wp-content/plugins/flow-flow-social-streams/js/public.js](http://www.newsite.womanmysalonandspa.ca/wp-content/plugins/flow-flow-social-streams/js/public.js)
   [http://www.newsite.womanmysalonandspa.ca/wp-content/uploads/cached-scripts/analytics.js](http://www.newsite.womanmysalonandspa.ca/wp-content/uploads/cached-scripts/analytics.js)
   [http://www.newsite.womanmysalonandspa.ca/wp-includes/js/wp-emoji-release.min.js](http://www.newsite.womanmysalonandspa.ca/wp-includes/js/wp-emoji-release.min.js)
   [http://www.newsite.womanmysalonandspa.ca/wp-json/contact-form-7/v1/contact-forms/24/refill](http://www.newsite.womanmysalonandspa.ca/wp-json/contact-form-7/v1/contact-forms/24/refill)
 * With Autoptimize, I am using Cache Enabler and Async Javascript.
 * Best,
    John
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcombining-javascript-files%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/combining-javascript-files/#post-9684154)
 * Morning John;
    * flow-flow-social-stream/js/public.js is loaded by other javascript,
   so although that initial JS get optimized, the js/public.js-file is invisible
   to AO * same problem with the cached analytics-script, but due to the fact that
   the initial JS contains `GoogleAnalyticsObject`, the entire JS remains as is.*
   wp-emoji-release is part of WordPress core, but you could install the “disable
   emojis” plugin to stop that from being loaded * the contact form refill is contact
   from 7 doing an AJAX request to the WordPress API. no idea why really, maybe 
   it’s an option you can disable?
 * hope this clarifies,
    frank
 *  Thread Starter [jstakel](https://wordpress.org/support/users/jstakel/)
 * (@jstakel)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/combining-javascript-files/#post-9687860)
 * Thanks for the quick reply, Frank. I’ll look into the disable emojis plugin. 
   Do I have any options to parse javascript for additional loads that happen within?
   I’m currently using Cache Enabler and Async Javascript .. would moving to something
   like WP Fastest Cache work to “preprocess” javascript before AO looks at it? 
   Not sure if that is possible. I’m also using Cloudflare .. I haven’t had great
   success with Rocket Loader .. but have you seen a setup where using rocket loader
   on manual for a few scripts work well, on top of AO?
 * Appreciate any thoughts.
 * Thanks
    John
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/combining-javascript-files/#post-9687987)
 * I’m afraid I don’t know of any tool that allows to pre-process JS as to allow
   calls from within JS to be optimized as well John. You could consider switching
   to other plugins (or changing options in plugins) to avoid some of those calls?
 * frank
 *  Thread Starter [jstakel](https://wordpress.org/support/users/jstakel/)
 * (@jstakel)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/combining-javascript-files/#post-9689199)
 * Thanks for your thoughts, Frank. I’m definitely evaluating those plugins right
   now, to see if I have some better options.
 * John

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

The topic ‘Combining Javascript Files’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [jstakel](https://wordpress.org/support/users/jstakel/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/combining-javascript-files/#post-9689199)
 * Status: resolved