<link rel="stylesheet/less" type="text/css" href="styles.less">
<script src="less.js" type="text/javascript"></script>
1 回答

哆啦的時光機
TA貢獻1779條經驗 獲得超6個贊
當然會! 你查看一下頁面源文件就能發現 less.js 會在 head 里面插入一個 inline-style
打開 firebug 或者別的 console, 你將會看到
less: parsed http://localhost/app.domain.com/static/style.less successfully. less: saving http://localhost/app.domain.com/static/style.less to cache. less: css for http://localhost/app.domain.com/static/style.less generated in 66ms less: css generated in 71ms
上面這個例子比直接引用 css 文件慢了 71ms
耗時主要在于文件生成, 插入節點其實可以忽略不計
- 1 回答
- 0 關注
- 180 瀏覽
相關問題推薦
添加回答
舉報
0/150
提交
取消