SVGElement: load event

The load event fires on an SVGElement when it is loaded in the browser, e.g. in the DOM in the case of an embedded <svg>. It is basically the same as the standard load DOM event.

Bubbles No
Cancelable No
Interface SVGEvent
Event handler property onload

Examples

svgElem.addEventListener('load', () => {
  console.log('SVG loaded.');
})

Specifications

Specification Status Comment
Scalable Vector Graphics (SVG) 2
The definition of 'load' in that specification.
Candidate Recommendation Initial definition

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
load eventChrome Full support YesEdge ? Firefox Full support Yes
Alternate Name
Full support Yes
Alternate Name
Alternate Name Uses the non-standard name: SVGLoad
IE ? Opera ? Safari ? WebView Android ? Chrome Android Full support YesEdge Mobile ? Firefox Android Full support Yes
Alternate Name
Full support Yes
Alternate Name
Alternate Name Uses the non-standard name: SVGLoad
Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown
Uses a non-standard name.
Uses a non-standard name.

Document Tags and Contributors

Last updated by: chrisdavidmills,