vue-youtube-embed icon indicating copy to clipboard operation
vue-youtube-embed copied to clipboard

Feature: Defer youtube player lib loading

Open zwacky opened this issue 5 years ago • 0 comments

Hey there, great library! The goal of this PR is to give the developer, if they want, the control of when the player api lib will be loaded.

e.g. currently whats being loaded right away:

  • player_api (1kb)
  • www-widgetapi.js (9kb)
  • per loaded video, not playing
    • embed html (17kb)
    • js/bg (5.3kb)
    • player css (40.4kb)
    • embed-player.js (39kb)
    • base.js (1.2mb)
  • doubleclick ad trackings:
    • id (0.2kb)
    • ad_status.js (0.01kb)

Bandwith and parse time is relevant here.

Tell me what you think, cheers!

zwacky avatar Dec 28 '19 18:12 zwacky