我对优化CSS交付有疑问。
我从
改变了我的main.css@import url(bootstrap.css);@import url(../rs-plugin/css/settings.css);@import url(responsiveslides.css);@import url(prettyPhoto.css);@import url(flexslider.css);@import url(style.css);@import url(rev-settings.css);@import url(../font-awesome/css/font-awesome.css);@import url(colors/red.css);@import url(switcher.css);
到
<link rel='stylesheet' type='text/css' href='bootstrap.css' />
<link rel='stylesheet' type='text/css' href='../rs-plugin/css/settings.css' />
<link rel='stylesheet' type='text/css' href='responsiveslides.css' />
<link rel='stylesheet' type='text/css' href='flexslider.css' />
<link rel='stylesheet' type='text/css' href='style.css' />
<link rel='stylesheet' type='text/css' href='rev-settings.css' />
<link rel='stylesheet' type='text/css' href='../font-awesome/css/font-awesome.css' />
<link rel='stylesheet' type='text/css' href='colors/red.css' />
<link rel='stylesheet' type='text/css' href='switcher.css' />
我的Google Page Speed得分严重不足但我的index.html没有加载css。
如果我将main.css更改回那些导入语句,那么一切正常。
我正在使用http://themeforest.net/item/truehost-responsive-html-5-hosting-template/5828966 tenplate,如果有帮助的话!