Do you recommend against javascript based LESS?

后端 未结 3 2015
野的像风
野的像风 2021-01-06 09:14

After I watched this NetTUTs video, I\'m very interested in trying out the LESS.js method shown.

Other than the obvious, \"What if the user doesn\'t have javascript

3条回答
  •  醉梦人生
    2021-01-06 09:57

    I can't see any reason why it should be used in production. It makes more sense to run this as a build script, then make the output (regular CSS) available on a cached cookie-free domain. Then, it works fine without JavaScript and doesn't require JavaScript processing (which will be slower than the CSS parsers written in tuned native code) on every page load.

提交回复
热议问题