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

Lazy Loading Video #81

Closed
TomS- opened this issue Mar 31, 2016 · 3 comments
Closed

Lazy Loading Video #81

TomS- opened this issue Mar 31, 2016 · 3 comments

Comments

@TomS-
Copy link

TomS- commented Mar 31, 2016

Hello,

I noticed that LazyLoad XT hasn't updated in 3 months and I was having an issue with it not lazy loading on Mac OSX Safari.

In this current build it's very important to lazy load videos:
<video class="b-lazy" width="100%" height="100%" autoplay loop muted data-poster="<?=$layout->featured_project_video_placeholder_poster->url?>"> <source class="b-lazy" data-src="<?=$layout->featured_project_video_placeholder_mp4->url?>" type="video/mp4"> <source class="b-lazy" data-src="<?=$layout->featured_project_video_placeholder_webm->url?>" type="video/webm"> <source class="b-lazy" data-src="<?=$layout->featured_project_video_placeholder_ogg->url?>" type="video/ogg"> </video>

I've tried the above but it didn't work. Is there any plan to support this?

@dinbror
Copy link
Owner

dinbror commented Mar 31, 2016

Hey @TomS-

On my example page where it works I only have a data-src on my video tag and no source tags. But it should work. I'll see if I get time later today or tomorrow to test it.
In your code you should a least remove the b-lazy class from the video tag.

@dinbror
Copy link
Owner

dinbror commented Apr 10, 2016

hey @TomS-

Better late than never ;)
See example 5b at my examples page: http://dinbror.dk/blazy/examples/

@dinbror dinbror closed this as completed Apr 10, 2016
@dinbror
Copy link
Owner

dinbror commented Apr 30, 2016

Fixed in 1.6.0

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