Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用开发工具并查看网络活动。我看到这两个。一个有红线,另一个有蓝线。有人可以解释一下有什么区别。用户何时会看到该页面。是“加载中”还是“加载 Dom 内容”?
“加载时”是指所有外部资源,例如完全加载的图像和音频。
“Dom Content Loaded”意味着 HTML 已被解析,任何修改 DOM 的脚本现在都可以安全运行。