I am using a JavaScript library to arrange few images on the webpage. The following browsers:
- Firefox
- IE 11
- Microsoft edge
render the page as it was planned, the problem occurs with Chrome browser. It messes up the complete layout.
The above browsers don't load any content unless all the images have been downloaded, until then it shows a blank white screen, and all of a sudden it will show all the content rendered perfectly. And in case of Chrome, the browser displays content on the go, as in you can see the images appearing in a scanline fashion.
I've tried calling the function that arranges these images inside:
$(window).load(function() {})
and it didn't fix the issue, I tried calling this in the <head></head>
and also just before closing </body>
, that didn't fix it either. Is this a Chrome related issue?
What should be the correct point in time where the function should be called?