Title: new external javascript file, what function for open it ?
Last modified: November 20, 2016

---

# new external javascript file, what function for open it ?

 *  [parcoursdecineastes](https://wordpress.org/support/users/parcoursdecineastes/)
 * (@parcoursdecineastes)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/new-external-javascript-file-what-function-for-open-it/)
 * hey,
 * i would like to combine all my externals javascripts,
    but i dont have child 
   theme and i would like to know if in can simply use the plug-in “custom function”
   for add a function which will open my new javascript files instead of the old
   multiple one, could someone help me and tell me what function im suppose to use
   for do that ?
 * thanks

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

 *  [MasterJuan](https://wordpress.org/support/users/masterjuan/)
 * (@masterjuan)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/new-external-javascript-file-what-function-for-open-it/#post-8459742)
 * Hello,
 * I think it’s not the proper way to do it. Why to call and load all js files everywhere
   in your website.
    I think it’s better to use a plugin which minifies html, css
   and js files. I use this plugin [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)
   It does what exactly it is made for!
 * Best regards
 *  Thread Starter [parcoursdecineastes](https://wordpress.org/support/users/parcoursdecineastes/)
 * (@parcoursdecineastes)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/new-external-javascript-file-what-function-for-open-it/#post-8459746)
 * Hey ,
 * i did that and when i go here> [https://varvy.com/tools/js/](https://varvy.com/tools/js/)
   it doesnt seem to have mix all the javascript in one fill ,
 * and my loading time of my page doesnt change,
 * have you some clue ?
 * thanks !
 *  [MasterJuan](https://wordpress.org/support/users/masterjuan/)
 * (@masterjuan)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/new-external-javascript-file-what-function-for-open-it/#post-8459758)
 * Can you provide your website url?
 * In general, few javascript files, like jquery.js, are not optimized:
 * Starting from AO 2.1 WordPress core’s jquery.js is not optimized for the simple
   reason a lot of popular plugins inject inline JS that is not aggregated either(
   due to possible cache size issues with unique code in inline JS) which relies
   on jquery being available, so excluding jquery.js ensures that most sites will
   work out of the box. If you want optimize jquery as well, you can remove it from
   the JS optimization exclusion-list (you might have to enable “also aggregate 
   inline JS” as well or switch to “force JS in head”).
 * Also, in order to achieve the best results from this plugin, you must configure
   right for your needs.
    [https://wordpress.org/plugins/autoptimize/faq/](https://wordpress.org/plugins/autoptimize/faq/)
 *  Thread Starter [parcoursdecineastes](https://wordpress.org/support/users/parcoursdecineastes/)
 * (@parcoursdecineastes)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/new-external-javascript-file-what-function-for-open-it/#post-8460351)
 * yes it is [http://www.fairedudropshipping.com](http://www.fairedudropshipping.com)
 * thanks!
 *  [MasterJuan](https://wordpress.org/support/users/masterjuan/)
 * (@masterjuan)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/new-external-javascript-file-what-function-for-open-it/#post-8478206)
 * Hey,
 * I am seeing these three files
    1) [http://www.fairedudropshipping.com/wp-content/cache/autoptimize/js/autoptimize_d93ab12832fe79e258995f7f45d1d342.js](http://www.fairedudropshipping.com/wp-content/cache/autoptimize/js/autoptimize_d93ab12832fe79e258995f7f45d1d342.js)
   This one is from autoptimize.
 * 2) [http://www.fairedudropshipping.com/wp-content/cache/wpfc-minified/7b264017aab5cc8f6da3cab187945029/1479323162index.js](http://www.fairedudropshipping.com/wp-content/cache/wpfc-minified/7b264017aab5cc8f6da3cab187945029/1479323162index.js)
   
   This one is from WP Fastest Cache. So, try to deactivate the option about JS 
   minification form this plugin. After that, probably you will have only two JS
   files being loaded and it will be great.
 * 3) [http://www.fairedudropshipping.com/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_js_w_globals=1&qcABC=1&ver=160801-902795780](http://www.fairedudropshipping.com/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_js_w_globals=1&qcABC=1&ver=160801-902795780)
   
   This one is from another plugin.
 * Best regards

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

The topic ‘new external javascript file, what function for open it ?’ is closed 
to new replies.

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [MasterJuan](https://wordpress.org/support/users/masterjuan/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/new-external-javascript-file-what-function-for-open-it/#post-8478206)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
