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

Trigger load event for videos (#27 #75 #86) #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bryanbergman
Copy link

@bryanbergman bryanbergman commented Jun 6, 2016

lazyload event will now fire for HTML5 videos and the lazy-loaded class will now be added to videos.

The solution was to listen for the loadeddata event on video elements.

@dryabov
Copy link
Collaborator

dryabov commented Jun 7, 2016

I'm not sure this patch should be included into main jquery.lazyloadxt.js file, most likely it should be a part of jquery.lazyloadxt.video.js add-on. I'll try to change that code correspondingly.

@bryanbergman
Copy link
Author

Thanks. I thought so too, but I wasn't sure how.

@tomByrer
Copy link

I think browsers & YouTube are pushing for HTML5-only videos; any progress on this?

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.

3 participants