HTML is by default fast and accessible. It is our job, as developers, to ensure that we preserve these two properties when creating or editing HTML code. Complications can occur when, for example, the file size of a
<video>
embed is too large, or when a webpage is not optimized for mobile devices. This module intends to walk you through the key HTML performance features that can drastically improve the quality of your webpage.
| Prerequisites: | Basic computer literacy, basic software installed , and basic knowledge of client-side web technologies . |
|---|---|
| Objective: | To learn about the impact of HTML elements and attributes on web performance optimization. |
<picture>
元素
<video>
元素
<source>
元素
<img> srcset
属性
rel="preload"
-
(https://w3c.github.io/preload/
)
async
/
defer
属性
<iframe>
<object>
<script>
rel
属性
<picture>
元素
<video>
元素
<source>
元素
<img> srcset
属性
rel="preload"
-
(https://w3c.github.io/preload/
)
最后修改: , 由 MDN 贡献者