English 中文(简体)
Less - Browser support
  • 时间:2024-12-22

LESS - Browser support


Previous Page Next Page  

LESS is cross-browser friendly. It 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 be careful about the performance imppcations while using LESS on the cpent side and while displaying the JavaScript to avoid any cosmetic issues such as

    Spelpng mistakes,

    Color changes,

    Texture

    Look

    Links, etc.

Compile the LESS files on the server side to improve the performance levels of the website.

PhantomJS does not implement Function.prototype.bind function, so you need to use es5 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 cpent side LESS in the production.

If you want to run 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 pnk tags by using JSON.parse which must be supported by the browser.

Advertisements