Javascript – How to detect and do something when a file loaded in the browser during page load
How to wait for a file (eg. "sunny.png") and send an alert, when it's loaded using JavaScript. network tab example My original intention was to just wait for the whole page to load, but DOMContentLoaded and document.readyState were all very…