SVGElement: abort event

The abort event is fired when page loading is stopped before an SVG element has been allowed to load completely. This basically implements the standard abort DOM event.

Bubbles No
Cancelable No
Interface SVGEvent
Event handler property onabort


svgElem.addEventListener('abort', () => {
  console.log('Load aborted.');


Not really described anywhere specifically, but mentioned in the SVG 2 spec.

Browser compatibility

BCD tables only load in the browser