Browser detection

luge includes Bowser to detect browser name and version. The Bowser instance is globally available on window.browser to do your own checks.

CSS classes

The following CSS classes are added to the html element depending on the user’s browser:

  • is-mobilewhen the user uses a mobile ;
  • is-tablet when the user uses a tablet ;
  • is-handheld when the user uses either a mobile or a tablet ;
  • is-desktop when the user uses a computer ;
  • is-safari when the user uses Safari (as it turns out that Safari is the new IE…), with an alternative is-safari--13 class that contains the version number.