Title: Minifying js scripts
Last modified: February 16, 2023

---

# Minifying js scripts

 *  Resolved [Philippe](https://wordpress.org/support/users/wp207/)
 * (@wp207)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/minifying-js-scripts/)
 *     ```wp-block-code
       https://www.googletagmanager.com/gtm.js
       https://connect.facebook.net/en_us/fbevents.js
       https://connect.facebook.net/fr_fr/sdk.js#xfbml=1&version=v6.0
       ```
   
 * Hi, these js scripts are not minified with your plugin. How can I minify them?(
   Every other *.js is minified by autoptimize except these 3 ones !). Thanks a 
   lot in advance. Great day !
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fminifying-js-scripts%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)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/minifying-js-scripts/#post-16477022)
 * AO cannot minify files that are not hosted by your own site Philippe, so it cannot“
   touch” Google or Facebook files.
 * hope this clarifies,
    frank
 *  Thread Starter [Philippe](https://wordpress.org/support/users/wp207/)
 * (@wp207)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/minifying-js-scripts/#post-16477043)
 * Hi Franck, Thanks for your quick answer ! 🙂 I understand. Those files are loaded
   in my header and body section. Even in this case there is nothing to do ? … Just
   to be sure ! 🙂
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/minifying-js-scripts/#post-16477069)
 * the only thing you could do is (re-)consider if you really need Facebook/ GTM
   on your site? 😉
 *  Thread Starter [Philippe](https://wordpress.org/support/users/wp207/)
 * (@wp207)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/minifying-js-scripts/#post-16477079)
 * hummm that’s a really really tasty interrogation 🙂 for now … yes I think it’s
   a good thing to show my FB events there.

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

The topic ‘Minifying js scripts’ 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: [Philippe](https://wordpress.org/support/users/wp207/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/minifying-js-scripts/#post-16477079)
 * Status: resolved