我的 Site's HTML 在 Firefox 中的 CSS 之前加载了一秒钟。是因为我正在使用@import 吗?
我正在使用 Foundation 3 Wordpress theme with a child theme .
感谢您的帮助。
@import url("../wp-foundation/style.css");
@import url("css/nav.css");
最佳答案
是的!
When @import is used, the browser is unable to download the stylesheets in parallel and add delays during the loading of a web page. @import in IE behaves like a at the bottom of the page.
所以直接链接到它。
关于Firefox 在 CSS 之前加载 HTML,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15168406/