Title: defer javascript loading
Last modified: April 1, 2019

---

# defer javascript loading

 *  Resolved [le.mag.cinema](https://wordpress.org/support/users/lemagcinema/)
 * (@lemagcinema)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/defer-javascript-loading/)
 * Hi,
    regarding GT Metrix performance test, it seems that the youtube plugin could
   have better performances if the parsing of the following javascripts were defered:
   [https://www.youtube.com/yts/jsbin/player-vfl7RxEWc/en_US/base.js](https://www.youtube.com/yts/jsbin/player-vfl7RxEWc/en_US/base.js)(
   1.1MiB) [https://www.youtube.com/yts/jsbin/www-embed-player-vfl0pIEiX/www-embed-player.js](https://www.youtube.com/yts/jsbin/www-embed-player-vfl0pIEiX/www-embed-player.js)(
   86.8KiB)
 * Furthermore, when several youtube videos are embedded in the same page/article,
   the javascript files are loaded several times, whereas they could be loaded only
   once …
 * Is a fix on this on your roadmap ?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdefer-javascript-loading%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [embedplus](https://wordpress.org/support/users/embedplus/)
 * (@embedplus)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/defer-javascript-loading/#post-11415182)
 * Hi,
    Those resources are from within the YouTube iframe itself (which the plugin
   of course have no control over–it’s up to Google to decide what happens inside
   their iframe). However we do offer a Pro version with the ability to lazy-load
   the entire video itself only when it’s scrolled into view. That has helped others
   with your similar issue.
 * _[ [Signature deleted](https://wordpress.org/support/guidelines/#do-not-spam)]_
    -  This reply was modified 6 years, 8 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 *  Thread Starter [le.mag.cinema](https://wordpress.org/support/users/lemagcinema/)
 * (@lemagcinema)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/defer-javascript-loading/#post-11436466)
 * ok for the youtube proprietary thing, but what about defering the load ?
 *  Plugin Author [embedplus](https://wordpress.org/support/users/embedplus/)
 * (@embedplus)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/defer-javascript-loading/#post-11436733)
 * Hi,
 * Again, those resources are loaded inside the iframe. We have no control over 
   how it is loaded, deferred, etc. etc.
 * _[ [Signature deleted](https://wordpress.org/support/guidelines/#do-not-spam)]_
    -  This reply was modified 6 years, 8 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

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

The topic ‘defer javascript loading’ is closed to new replies.

 * ![](https://ps.w.org/youtube-embed-plus/assets/icon-256x256.png?rev=2165403)
 * [Embed Plus for YouTube Gallery, Livestream and Lazy Loading with Facades](https://wordpress.org/plugins/youtube-embed-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/youtube-embed-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/youtube-embed-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/youtube-embed-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/youtube-embed-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/youtube-embed-plus/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [embedplus](https://wordpress.org/support/users/embedplus/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/defer-javascript-loading/#post-11436733)
 * Status: resolved