Firefox 在 CSS 之前加载 HTML

标签 html css wordpress

我的 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.

[1]

所以直接链接到它。

关于Firefox 在 CSS 之前加载 HTML,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15168406/

相关文章:

wordpress - 如何更改 MapBox 弹出窗口的位置?

html - 将 div 高度设置为位置为 : absolute in combination with CSS3 transitions 的内部 div

javascript - 添加到我的网站的图像编辑器

javascript - <audio> 使用 Javascript 的 HTML5 元素状态

javascript - 如何检测页面不透明度?

javascript - 无法让滚动动画与 jquery 一起使用

html - 使用CSS在图像内部曲线

css - 是否有全 View 高度的 Bootstrap 类

html - 丝带式菜单?

php - 如何从wordpress菜单中获取单个特定项目