Luke Cavanagh on "[Plugin: Lazy Load XT] Lazy Loading mp4 video"

ساخت وبلاگ

Luke Cavanagh
Member
Posted 1 day ago #

Lazy load XT can it lazy load mp4 web video?

For example a 2 second mp4 video without audio used as a background video on a homepage.

https://wordpress.org/plugins/lazy-load-xt/

dbhynds
Member
Plugin Author

Posted 7 hours ago #

Possibly. It depends on hour you're implementing the video. How are you loading the ideo on the page currently?

Luke Cavanagh
Member
Posted 5 hours ago #

This is a simple implementation of how the files are being loaded currently.

https://gist.github.com/lukecav/f32f8ad09b32e32f2631

dbhynds
Member
Plugin Author

Posted 4 hours ago #

Great... so looking at this it looks like the video will load on the page like normal, but CSS will make it appear in the background.

If that's the case, this plugin ought to lazy load it, no problem. Have you tried it yet? If it's not working, let me know and I'll look into it.

Luke Cavanagh
Member
Posted 5 minutes ago #

In this case the video is just used on two sliders of the homepage slider. Each video is around 1.5-3mb in size. So not sure if Lazy Load would really help. Rather than background loading those two assets.

- - , .

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 161 تاريخ : جمعه 30 بهمن 1394 ساعت: 4:49