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.
大家好,大家好!
这行得通吗?还是有更好的选择?这可能不需要我们重做第二页...
不要这样做。将有先见之明的加载留给浏览器。无论如何,将所有 CSS 和 Javascript 包含在一个文件中并将其加载到主页上,但您不需要 iframe。
像其他人一样进行适当的优化。研究如何优化 CSS 和 JS 加载。考虑缩小你的 CSS和 JS。使用YSlow 之类的工具来查找页面交付中的瓶颈。