Closed shi-sergiom closed 9 years ago
It's known issue in Safari (it uses "screenshot" of the page during scroll, in iPhone 1 it was significant performance optimization, but now it looks like a kind of legacy code). The only solution is to move page content into manually positioned layer and process touchmove event to change its position (see projects like https://github.com/cubiq/iscroll or https://github.com/filamentgroup/Overthrow/). Anyway, it is too complicated thing to be implemented in the framework of LazyLoadXT project.
Hello, I'm having some problems trying to make a scrollable div lazy load the images inside. It works perfectly on the desktop browser but when on mobile safari when I scroll (scrolls with momentum) the images are not shown until the scrolling stops completely. This also means that the onshow function is not executed until the scrolling stops. BTW I'm using both spinner and fade effect.
This is how I'm initialising the plugin.
Later on the code once an item has been added to the DOM I do the following.
Related CSS is below. I am using -webkit-transform: translate3d(0,0,0); in the scrollable div to use hardware acceleration but that doesn't help. I also tried adding it to the images but still the same.
I'm sure there is something I'm missing but cant figure out what.
Thanks for and awesome plugin.
Sergio
Update
I noticed that the problem really is because the scroll event is not triggered on safari mobile when "momentum scrolling".