The <discard> SVG element allows authors to specify the time at which particular elements are to be discarded, thereby reducing the resources required by an SVG user agent. This is particularly useful to help SVG viewers conserve memory while displaying long-running documents.

The <discard> element may occur wherever the <animate> element may.

Usage context

CategoriesAnimation element
Permitted contentAny number of the following elements, in any order:
Descriptive elements


Global attributes

Specific attributes

  • begin
  • href (but note that <discard> has never supported xlink:href)


Specification Status Comment
SVG Animations Level 2
The definition of '<discard>' in that specification.
Editor's Draft Initial definition

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
discardChrome No support 34 — 81Edge No support 79 — 81Firefox No support NoIE No support NoOpera No support 21 — 68Safari No support NoWebView Android No support 37 — 81Chrome Android No support 34 — 81Firefox Android No support NoOpera Android No support 21 — 58Safari iOS No support NoSamsung Internet Android Full support 2.0


Full support  
Full support
No support  
No support