Friday, March 3, 2017

Less - Browser support

LESS is cross browser friendly that supports modern browsers such as Google Chrome, Mozilla Firefox, Safari and Internet Explorer and allows reusing CSS elements and write LESS code with the same semantics.
You must careful about performance implications while using LESS on the client side and display the JavaScript occurs if there are cosmetic issues (means spelling mistakes, color changes, texture, look, links etc). Compile the LESS files on the server side to provide more performance for the website.
The PhantomJS does not implement Function.prototype.bind function, so you need to use es-5 shim JavaScript engine to run under PhantomJS. Users can make adjustments with variables to affect the theme and show them in real time by using the client side LESS in the production.
If you want to run the LESS in older browsers, then use the es-5 shim JavaScript engine which adds JavaScript features that LESS supports. You can use attributes on the script or link tags by using JSON.parse which must support by the browser.

No comments:

Post a Comment