<src= "Js/feature.js"></script> if ( FEATURE.WEBGL) { console.log ("Your browser supports WebGL"),} else { console.log ("Your browser does not support WebGL");}
The following is a list of features that feature.js can perform in browser detection.
- Feature.async
- Feature.addeventlistener
- Feature.canvas
- Feature.classlist
- Feature.cors
- Feature.contextmenu
- Feature.css3dtransform
- Feature.csstransform
- Feature.csstransition
- Feature.defer
- Feature.devicemotion
- Feature.deviceorientation
- Feature.geolocation
- Feature.historyapi
- Feature.placeholder
- Feature.localstorage
- Feature.matchmedia
- Feature.pictureelement
- Feature.queryselectorall
- Feature.remunit
- Feature.serviceworker
- Feature.sizes
- Feature.srcset
- Feature.svg
- Feature.touch
- Feature.viewportunit
- Feature.webgl
Feature.js Browser feature detection plugin's github address is: https://github.com/viljamis/feature.js
Browser feature detection plugin Feature.js