Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/svg/element/discard/index.md
6568 views
---
title: <discard> slug: Web/SVG/Element/discard page-type: svg-element tags: - Element - NeedsExample - Reference - SVG - SVG Animation browser-compat: svg.elements.discard
---

{{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 supported xlink:href)

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}