I am very new to web programming and I have some doubts about the hide () and show () of jquery. There goes:
We have a website where a lot of images are loaded in a grid format (about 140).
When we open / load the web page, the images are loaded in a random way, that is to say, the images that are the first ones are loaded first and as the page is loaded the others are loaded but in a random way (eg: load the one in position 100, then load the one in position 13, then the 39, then the 12, then the 120 ...).
What you need to do is to load sequentially from top to bottom as you scroll. Leaving aside the use of LazyLoad, my question is this:
If when I load the DOM the images that are not visible to the naked eye I hide them with hide () and when the sidebar reaches the end of the page I show them with the show (), does this reduce the loading time of the page (what do we want) or even if the hidden images are loaded the same as loading the DOM? That is to say, even if the image is in hide () it will have loaded also being hidden or it will be loaded when it shows it? (show ())
I guess I have not explained myself very well but ... well, let's see if anyone can answer me.
Thank you.