Run
Online Code Editor
Note:
On some browsers, the load event did not trigger if the image is cached.