tiny-slider icon indicating copy to clipboard operation
tiny-slider copied to clipboard

Lazyload background images

Open yordanzhelevdev opened this issue 5 years ago • 11 comments

Is there a way to lazyload background images?

yordanzhelevdev avatar Sep 10 '19 07:09 yordanzhelevdev

Is there a way to lazyload background images?

Did you find a solution to this?

erlendvo avatar Nov 20 '19 11:11 erlendvo

Is there a way to lazyload background images?

Did you find a solution to this?

No. I just used img tag

yordanzhelevdev avatar Nov 20 '19 15:11 yordanzhelevdev

Is there a way to lazyload background images?

Did you find a solution to this?

No. I just used img tag

all rite, for whatever its worth, i did solve it by changing the tiny.js to add style to a div tag instead of adding a src attribute to the img tag in the dolazyload function

erlendvo avatar Nov 21 '19 09:11 erlendvo

all rite, for whatever its worth, i did solve it by changing the tiny.js to add style to a div tag instead of adding a src attribute to the img tag in the dolazyload function

Hi erlendvo, I have the same issue with using lazyload for background images. I found the doLazyLoad function in tiny-slider.js, but for me it’s not clear how to make the change you have mentioned. Do you mind posting the tweaked code? Thank you!

Shlomo-Felsenstein avatar Apr 21 '20 07:04 Shlomo-Felsenstein

This can be added as a feature in the next versions.

yordanzhelevdev avatar May 19 '20 13:05 yordanzhelevdev

i need lazyloading for background images too!

nicmare avatar Jun 03 '20 13:06 nicmare

+1

ThinkWired avatar Nov 25 '20 05:11 ThinkWired

+1

dantahoua avatar Feb 18 '21 20:02 dantahoua

+1

al-catraz avatar Mar 17 '21 15:03 al-catraz

+1

lucievr avatar Mar 22 '21 18:03 lucievr

+1

dijkermans avatar Feb 01 '22 21:02 dijkermans