Skip to content

Instantly share code, notes, and snippets.

@thealscott
Created January 22, 2014 14:48
Show Gist options
  • Save thealscott/8559974 to your computer and use it in GitHub Desktop.
Save thealscott/8559974 to your computer and use it in GitHub Desktop.
Cutting the mustard snippet (via BBC)
if ('querySelector' in document &&
'localStorage' in window &&
'addEventListener' in window) {
// bootstrap the JavaScript application
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment