aFarkas / html5shiv

This script is the defacto way to enable use of HTML5 sectioning elements in legacy Internet Explorer.
http://paulirish.com/2011/the-history-of-the-html5-shiv/
9.88k stars 2.56k forks source link

my site does not work in IE, shiv not working, can anyone help me out? #196

Open jondmk1208 opened 8 years ago

jondmk1208 commented 8 years ago

jondmk.com

this is a portfolio i am building right now, but it does not work in IE. can anyone help me? I cant figure out why it is not working.

jayxhj commented 8 years ago

Try to put it in your not the bottom of your HTML.

PhilipsEkuma commented 8 years ago

Hi Jonathan, I checked out your website in IE 10 and it loads okay, (except for the Google Map embed in the /#meet-us (Location) section. You didn't say which version of IE you tested with and found it not working.

I'm guessing you have either solved the problem, or you tested with only on version of IE.

Meanwhile, try to follow @jayxhj suggestion by moving the following code in your HTML to the footer, just before the tag:

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[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]-->
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
        // When the window has finished loading create our google map below
        google.maps.event.addDomListener(window, 'load', init);

       ...
       ...
       ...
</script>