Im working with a LazyLoad script for my site and has a problem with one small aspect.
Im using Lazy Load on a horizontal scroll bar (left to right) with fairly wide images. The script works fine and disappears within 200px (or whatever the default is).
However, I noticed that if the window opens to a smaller size and then opens to a full window, then the placeholder, Lazy Load has only the loaded image, which was "In View" during the smaller window size. It loads when the scrollbar moves, but I'm curious if there are any scenarios that I could add along the lines of “When the window resizes, resize the viewport”
Hope this makes sense. I know very little about JavaScript, so if anyone knows how to solve this problem, do not hesitate to respond as if you were talking with a 5-year step-by-step instructions :)
source
share