Is there a way in Javascript to execute code once every element of type/class/tag etc. has been loaded?
Something like:
document.getElementsByClassName("test").addEventListener("onload", ()=> { executeStuffHere(); });
If not, is there a similar way to do this for images? (Execute code once all images have been loaded)