Do not load script in IE8 and below?

This question should be a duplicate, but I can not find the final answer here.

How can I tell the browser not to load the script if the browser is IE8 or lower?

I know about targeting on IE9 and above:

<!--[if gte IE 8]> According to the conditional comment this is IE 8 or higher<br /> <![endif]--> 

but then the script does not load in non-IE browsers.

How can I say "download the script if not IE, or if IE and more IE8 ??

+4
source share
1 answer

Conditional comment for "Except IE8"?

 <!--[if gte IE 9]><!--> // Your script here. This will only be loaded if IE version is greater than 8, OR any other browser. <!--<![endif]--> 

Must work?

+20
source

Source: https://habr.com/ru/post/1486635/


All Articles