Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Defer youtube player lib loading #66

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zwacky
Copy link

@zwacky zwacky commented Dec 28, 2019

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants