luis-almeida / unveil

A very lightweight jQuery plugin to lazy load images
4.16k stars 676 forks source link

When refreshing from halfway down page, unveil doesn't reveal unless page is scrolled up #144

Closed perry-garvin closed 6 years ago

perry-garvin commented 6 years ago

Hi there,

I like Unveil a lot. Strangely in Chrome when refreshing the page from halfway down the page, Unveil doesn't reveal unless page is scrolled up. I made video explaining here:

https://www.dropbox.com/s/7edhh7npbaus4p8/Unveil.mov?dl=0

ZLevine commented 6 years ago

@the-magus do you have any other JS on the page using the scroll event? I've found that these can sometimes delay or block unveiling, depending on what they're doing.

perry-garvin commented 6 years ago

Hi Zach - thanks for following up. That may be the case. At any rate, I decided to try another approach with another loader. I do like Unveil's minimal nature, though!