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

Handle JS API initialization #48

Open
RopoMen opened this issue Sep 22, 2016 · 0 comments
Open

Handle JS API initialization #48

RopoMen opened this issue Sep 22, 2016 · 0 comments

Comments

@RopoMen
Copy link

RopoMen commented Sep 22, 2016

Hi,

Could you add support for init of JS API's?

  1. YouTube video is about to embedded and JS API is enabled in settings.
  2. Your 'embedVideo' directive notices this setting and calls 'JSAPIInitializer' -service, for example 'JSAPIInitializer.initYouTube(callback_when_ready)'
  3. service would inject YT JS API javascript in to and listen YT onready callback function.

This would be 'lazy' load of YT API (and others) and I don't need to handle that inject. I do not like the idea that I need to add all JS files at the :<

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

No branches or pull requests

1 participant