We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE

Our volunteers haven't translated this article into Bahasa Indonesia yet. Join us and help get the job done!
You can also read the article in English (US).

The onloadend property of the GlobalEventHandlers mixin is an EventHandler representing the code to be called when the loadend event is raised (when progress has stopped on the loading of a resource.)


img.onloadend = funcRef;


funcRef is the handler function to be called when the resource's loadend event fires.


HTML content

<img src="myImage.jpg">

JavaScript content

// 'loadstart' fires first, then 'load', then 'loadend'

image.addEventListener('load', function(e) {
  console.log('Image loaded');

image.addEventListener('loadstart', function(e) {
  console.log('Image load started');

image.addEventListener('loadend', function(e) {
  console.log('Image load finished');


Specification Status Comment
HTML Living Standard
The definition of 'onloadend' in that specification.
Living Standard Initial definition

Browser Compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support No support No support 52 (52)[1] No support No support ?
Feature Android Android Webview Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support ? No support 52.0 (52)[1] No support No support ? No support

[1] As of Firefox 52, The loadend event is now fired on <img> elements.

Tag Dokumen dan Kontributor

 Kontributor untuk laman ini: Sebastianz, chrisdavidmills
 Terakhir diperbarui oleh: Sebastianz,