Can this be created in javascript. A timer?

You can actually see the time an image took to load in the network panel of your brwoser’s dev tools, if this is all you want to know.

Measuring that time using JS would only be reliable if you set the image source with JS as well, as you can’t know when the script actually starts running and all. Depending on how the browser sets the priority, it might start loading the image before the script got even parsed.

1 Like