Rich W
Rich W
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).

    Rich W

    Written by

    Rich W

    UK based Contractor — Specialising in Angular front-end, AWS certified, Masters’ degree in Electronics and Communications Engineering.

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade