最佳答案
您可以使用 Firebug 查看加载时间(您会确切地看到加载需要多长时间)。
另外还有一个选项,你 compile your .less to .css locally甚至 do it online在你把它放到网站上之前。
编辑:
这是我在本地服务器上尝试 benchmark.less 的结果:
less: parsed hxxp://localhost/testing/css/style.less successfully.
less: saving hxxp://localhost/testing/css/style.less to cache.
less: css for hxxp://localhost/testing/css/style.less generated in 640ms
less: css generated in 641ms
附注不管负载影响如何,我还是会先编译成css再上线,不然JS不通的人什么都得不到。
关于css - less.js 负载影响,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7742530/