Get started with modernizr CDN
MIT licensed
Modernizr: library for feature detection, HTML5 shimming in browsers.
Tags:- modernizr
- js
- javascript
- css
- css3
- html
- html5
- popular
Stable version
Copied!
How to start using modernizr CDN
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.cdnhub.io/modernizr/3.13.0/modernizr.min.js"></script>
<title>Get started with modernizr CDN - cdnhub.io</title>
</head>
<body>
<!-- Your HTML content goes here -->
<script>
// Check for the presence of specific features using Modernizr
if ('querySelectorAll' in document && (document.querySelectorAll && Modernizr.touch)) {
console.log('Your browser supports querySelectorAll and touch events.');
}
</script>
</body>
</html>