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

Video support #2

Closed
julien-f opened this issue Oct 17, 2014 · 1 comment
Closed

Video support #2

julien-f opened this issue Oct 17, 2014 · 1 comment

Comments

@julien-f
Copy link

It would be great if it could also work with <video>:

  • support of the poster image
  • setting the src attribute of <video> or <source> lazily

It might be outside the range of this module but I thought I'd ask anyway :)

@aFarkas
Copy link
Owner

aFarkas commented Oct 17, 2014

I thought about this, but due to the fact, that poster isn't picked up by the preload scanner it's often not important to lazyload it. For the src/sourcepart, you already have preload="none" and preload="".

lazySizes already has a simple hook for those kind of extension and I will improve it to make this more easier.

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

2 participants