Here is a simple example of usage of Modernizr.js, If you are trying to execute a HTML 5 tag with older browsers like IE7, if the browser didn't support the HTML5, DOM may not understand your code. But using Modernizr.js you can execute the HTML5 code with older browsers.
Example usage:
<html class="js no-touch postmessage history multiplebgs boxshadow opacity" lang="en">
<head>
...
<script src="/modernizr.js"></script>
...
Supplementary to conditional class names, used for feature detection.
Disadvantages
Introduced a script in the will slow down the page more or less.
Read more:
http://modernizr.com/
No comments:
Post a Comment