HTML performance features - Learn web development 编辑
Draft
This page is not complete.
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. |
Elements & attributes impacting performance
- The
<picture>
Element - The
<video>
Element - The
<source>
Element - The
<img> srcset
attribute - Preloading content with
rel="preload"
- (https://w3c.github.io/preload/ ) async
/defer
attributes<iframe>
<object>
<script>
rel
attribute
Conclusion
In this module
- The "why" of web performance
- What is web performance?
- How do users perceive performance?
- Measuring performance
- Multimedia: images
- Multimedia: video
- JavaScript performance best practices.
- HTML performance features
- CSS performance features
- Fonts and performance
- Mobile performance
- Focusing on performance
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论