Path: blob/main/files/en-us/web/svg/element/discard/index.md
6568 views
------{{SVGRef}}
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 {{SVGElement("animate")}} element may.
Usage context
{{svginfo}}
Attributes
Global attributes
Specific attributes
{{SVGAttr("begin")}}
{{SVGAttr("href")}} (but note that
<discard>has never supportedxlink:href)
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}