Sep 2, 2018 · 1 min read
The doSomething() message is logged in the console as soon as the background image begins loading. This can be checked with the chrome dev tools and setting the network speed to fast 3g while a 4k background image is applied to a div. I don’t know if this is what you intended but this doesn’t seem to be useful in triggering an event when an image is fully loaded (e.g. show a loading overlay while a HD background image is fully loaded and then hide the overlay on the loaded event).