Lazy load bxslider?
-
Does Lazy Load XT support lazy loading of bxslider?
I am using BeaverBuilder to create some of the pages on my website and it gets a bit slow when you have many slides. I have asked about it earlier on the BeaverBuilder forum:
https://www.wpbeaverbuilder.com/support/q/lazy-load-bb-content-slider/If there is interest from others it would be great if this was something that you could implement in the Lazy Load XT plugin 🙂
Best regards,
Michael
-
It depends on how the bxslider is implemented, but based on what they show about it out of the box, this plugin should work on it. If it doesn’t, please view-source the page and copy/paste the HTML that it generates for the slider here. I’ll take a look and get back with ya.
Cool thanks for the quick response. I am not sure how to test if it works.
FYI I have included the HTML here:
[ Excessive HTML code redacted, please just keep to the link to the page. ]
Best regards,
MichaelMy theme is using the same slider, and it’s not behaving as I’d expect with Lazy Load XT. I may be misunderstanding it, but I’d expect only the first slider image to load in at first, with the second & third loading in as the slider changes to them. You can look at where I’m loading it here: http://wesavepets.org/wordpress/
I appreciate any advice!
Note: the address is updated to just http://wesavepets.org/
Ok, I was able to look into it a bit more. It looks like the HTML for the slider needs to be passed through the
get_lazyloadxt_html()function to filter it to work with Lazy Load XT. If you’re comfortable editing your theme, this should work. Here’s an example (from the FAQ page of this plugin):For example, if a theme has:
echo wp_get_attachment_image($id);Changing it to the following would lazy load the image:
echo get_lazyloadxt_html( wp_get_attachment_image($id) );Best of luck. Let me know if I can be of further assistance.
The topic ‘Lazy load bxslider?’ is closed to new replies.