Marc Polizzi
Marc Polizzi

Reputation: 9375

How to prevent javascript library load for IE8

How to prevent the load of the D3 library for IE8 (and below) ?

<head>
    <script src="../lib/d3/d3.v2.min.js" type="text/javascript"></script>
</head>

Upvotes: 2

Views: 894

Answers (2)

strah
strah

Reputation: 6732

<head>
    <!--[if !IE || gte IE 9]><!-->
        <script src="../lib/d3/d3.v2.min.js" type="text/javascript"></script>
    <!-- <![endif]-->
</head>

Upvotes: 5

xdazz
xdazz

Reputation: 160883

<!--[if gt IE 8]>
<script src="../lib/d3/d3.v2.min.js" type="text/javascript"></script>
<![endif]-->

Upvotes: 0

Related Questions