让我们再聊聊浏览器资源加载优化

摘要

几乎每一个前端程序员都知道应该把script标签放在页面底部。关于这个经典的论述可以追溯到Nicholas的HighPerformanceJavasript这本书的第一章LoadingandExecution中,他之所以建议这么做是因为:Putalltagsatthebottomofthepage,justinsideoftheclosingtag.Thisensuresthatthepageca

欢迎在评论区写下你对这篇文章的看法。

评论

首页 - Wiki
Copyright © 2011-2024 iteam. Current version is 2.125.0. UTC+08:00, 2024-05-04 14:42
浙ICP备14020137号-1 $访客地图$