Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do you recommend against javascript based LESS?

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 enabled?", or "There's going to be a small performance hit"... is there a reason this cannot be used in production?

LESS essentially looks like what CSS should be...

like image 277
Chaddeus Avatar asked Dec 29 '22 12:12

Chaddeus


1 Answers

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.

like image 176
Matthew Flaschen Avatar answered Dec 31 '22 02:12

Matthew Flaschen