I am a lil confused how lazy load for images work in general and would like to understand better.
I am using this simple php plugin to lazy load image on my website. https://github.com/Jumedeenkhan/lazy-load-for-images (js at bottom of php file)
I know that it will "Lazy load" images that are "below the fold". However I was wondering does it also lazy load an image if the image or the images container is set to "display:none" or is "hidden".
For example I have a set of "Tabs" and each tab has products inside. The default tab of course shows the images - but the other tabs have content with images also that are not displayed until the person clicks the corresponding tab. So my question is does this "plugin" solution above also "Lazy load" images in the scenario of "tabs" described above?
If not - is there a better solution i should be trying to solve that issue?
Thanks for any insight!
edit - im adding JS back to the tags since the php file is loading js script at the bottom of it. Which i think is the core of the lazy loading function