M
M
Max2015-07-28 22:07:54
JavaScript
Max, 2015-07-28 22:07:54

Why doesn't html5shiv work in IE8?

Locally everything works fine, but when uploading to production it doesn't.
In the console, I watch the scripts are downloaded (200 OK).
I connect before any scripts and styles connections:

<!--[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 even tried to directly insert the shiva code, changed the security settings in IE, still does not want to work in production =(

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
chupok, 2015-07-28
@chupok

All right. And if you type="text/javascript"add in the order of nonsense? I haven’t supported IE8 for a long time, but I remember that it seemed to be sensitive to the attribute.

D
Dima Pautov, 2015-07-28
@bootd

Where did you connect it? If it’s down the page, then it doesn’t work for me, but if it’s in the head tag, then everything is OK

S
Sasha, 2015-07-28
@userAlexander

Try like this

<!--[if IE]>
  <link rel="stylesheet" media="all" type="text/css" href="css/ie.css">
  <script type="text/javascript" src="js/html5.js"></script>
<![endif]-->

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question