Title: Deferring Minified Javascript
Last modified: July 11, 2020

---

# Deferring Minified Javascript

 *  Resolved [bsteinagel](https://wordpress.org/support/users/bsteinagel/)
 * (@bsteinagel)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/deferring-minified-javascript/)
 * Hello,
 * I would like to go through my website and figure which javascript files can be
   deferred. The problem I’m running into is with minified javascript. The path 
   to minified script doesn’t appear to be static so I’m not able to defer these
   scripts. As an example, the path to one of my minified scripts is:
 * /wp-content/cache/wpo-minify/**1594487760**/assets/wpo-minify-header-2b3305b7.
   min.js
 * The part of the path in bold appears to change randomly. How do I defer scripts
   when the path changes?
 * Regards,
    -  This topic was modified 5 years, 10 months ago by [bsteinagel](https://wordpress.org/support/users/bsteinagel/).
    -  This topic was modified 5 years, 10 months ago by [bsteinagel](https://wordpress.org/support/users/bsteinagel/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdeferring-minified-javascript%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [futur3int](https://wordpress.org/support/users/futur3int/)
 * (@futur3int)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/deferring-minified-javascript/#post-13111128)
 * Yes good point, i am seeing this under GT Metrix, is it possible to defer or 
   async the minified files without breaking the site ?
 * Also [@bsteinagel](https://wordpress.org/support/users/bsteinagel/) you may look
   for a pro website, ask me if you need.
    -  This reply was modified 5 years, 10 months ago by [futur3int](https://wordpress.org/support/users/futur3int/).
    -  This reply was modified 5 years, 10 months ago by [futur3int](https://wordpress.org/support/users/futur3int/).
    -  This reply was modified 5 years, 10 months ago by [futur3int](https://wordpress.org/support/users/futur3int/).
    -  This reply was modified 5 years, 10 months ago by [futur3int](https://wordpress.org/support/users/futur3int/).
    -  This reply was modified 5 years, 10 months ago by [futur3int](https://wordpress.org/support/users/futur3int/).
 *  [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/deferring-minified-javascript/#post-13115220)
 * Hi there,
 * At the moment, the minified files can’t be deferred (the option will be added
   soon).
 * You can use the asynchronous section, which takes the original scripts (not the
   ones generated by WP-Optimize).
 * You can get the file names in the advanced tab:
 * ![](https://i1.wp.com/i.postimg.cc/dQzjSgp4/image.png?ssl=1)
 * Marc.
 *  Thread Starter [bsteinagel](https://wordpress.org/support/users/bsteinagel/)
 * (@bsteinagel)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/deferring-minified-javascript/#post-13124215)
 * Yes. I think that will be a very beneficial feature to have added. Being able
   to defer minified script should improve my site scores in GTMetrix. Incidentally,
   I’m not sure how accurately GTMetrix measures real-world performance compared
   to other performace tools out there. It seems that it’s awfully hard to get even
   a decent score with that tool, much less anything close to perfect. But I’m a
   photographer so my site is very image-intensive too.
 * Regards,
    Brad
 *  [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/deferring-minified-javascript/#post-13161506)
 * Hi Brad,
 * GTMetrix is a tool to point out possible improvements, but it’s not always on
   track with the perceived performance. You’ll sometimes get great scores while
   the site is slow, or bad scores while the site is fast.
 * Some of the things that matter more for photography-heavy websites are a good
   image compression and lazy loading.
 * Best,
    Marc.
 *  [tomdkat](https://wordpress.org/support/users/tomdkat/)
 * (@tomdkat)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/deferring-minified-javascript/#post-13201342)
 * Thanks for starting this discussion! I’m in a similar situation and the information
   posted above was very useful!

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

The topic ‘Deferring Minified Javascript’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

## Tags

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

 * 5 replies
 * 4 participants
 * Last reply from: [tomdkat](https://wordpress.org/support/users/tomdkat/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/deferring-minified-javascript/#post-13201342)
 * Status: resolved