Compatibility, less css benefits

For my site, I am considering using Less .

Do I have a browser compatibility problem, JavaScript problem, or other problems? I know this is better than CSS, but I don’t know if I can have problems.

+4
source share
3 answers

Although I prefer SASS over LESS (the best syntax [loops and control structures], and it has a few more options => my opinion), it is generally recommended to use the CSS-Framework . It protects time and unnecessary work. Just remember to pre-compose your styles in Production mode. Do not do this on the client side (may cause problems: disable javascript, performance problems ...). If you precompile CSS, you don’t need to be afraid of any problems, since native CSS is delivered to the browser.

You can see a good comparison here:

https://gist.github.com/820035

+4
source

from LESS docs:

As a CSS extension, LESS is not only backward compatible with CSS, but also adds extra features using existing CSS syntax. [...] if in doubt, lets go back to CSS.

The best approach in production is to compile it on the server side, and during development you can simply use the client side javascript compiler:

http://lesscss.org/#-client-side-usage

also note that LESS is not strictly a skeleton (as opposed to what Twitter Bootstrap has), but can be easily paired with one. Bootstrap itself also has a version facilitated by LESS.

+1
source

I agree with @Christoph. I also prefer SASS. Also Less or Sass are not used for browser compatibility. They are used to add functionality to css.

Here you can see this article.

http://nittygrittyjs.com/blog/why-less-is-a-pain-in-the-sass/

0
source

All Articles