Skip to content

Instantly share code, notes, and snippets.

@oriSomething
Created February 4, 2015 19:41
Show Gist options
  • Save oriSomething/f2c142352599f22c3951 to your computer and use it in GitHub Desktop.
Save oriSomething/f2c142352599f22c3951 to your computer and use it in GitHub Desktop.
Detect old browsers (IE 8-, Android 2.x). The easy way
var isBrowserOld = ! Function.prototype.bind;
// Can also add an CSS class
document.documentElement.className += ' old-browser';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment