<discard>

<discard> SVG 元素允许作者指定在何时丢弃特定元素,从而减少 SVG 用户代理所需的资源。这对于帮助 SVG 查看器在显示长时间运行的文档时节省内存特别有用。

<discard> 元素可以出现在 <animate> 元素可以出现的任何位置。

用法

类别动画元素
允许的内容任意数量、任意顺序的下列元素:
描述性元素
<script>

属性

全局属性

专有属性

规范

Specification
SVG Animations Level 2
# DiscardElement

浏览器兼容性

BCD tables only load in the browser