BootStrap HTML5 Shiv Silly Question

Hello Masters,

In Bootstrap we have these lines in the header.

<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->

I never understood what it does and never worried about it. I guess HTML5 Shiv gives HTML5 support to IE below IE9.

Now my Question is shall I leave them as it is or shall I activate them. Right now because of the 1st and 4th line they are in de-active state… right???

Thanks.

1 Like

No, not in older versions of IE anyway.
The way these work is that the code is commented out for most browsers, all except for IE8 and earlier.
So you can leave as is, the code will be active in old IE, but not in anything else.

4 Likes

Thank you. Solved :slight_smile:

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.