I enter JavaScript code on the site for personal use using the Google Chrome extension ... I would like to hide all the images until the page loads ... I have a script to run until something loads, but it seems I canβt get the correct code to hide an array of images ... something like:
function beforeload(){ document.getElementsByTagName('img')[0].style.display = "none" }
Basically, I want all image tags to add style = "display: none" attributes. how to do it?
David source share