John Ohara
John Ohara

Reputation: 2901

Should you still support IE conditional comments?

As a lone developer with limited resources, I made the decision some time ago not to continue support for IE8 and IE9.

To manage the situation I use IE's conditional comments - I now also use Modernizr to detect support for individual features, which the above browers do not support anyway.

Javascript is also a given for me - if you don't have it, then sorry but we can't do business.

I was therefore considering removing conditional comments and letting Modernizr/javascript do the job.

Conditional comments do break a lot of things that scrape the site - for instance CopyScape will not work - there's also testing software I use that breaks and/or gives out false signals.

Does anyone have any cast iron reasons NOT TO remove them or TO remove them?

Upvotes: 1

Views: 139

Answers (1)

Lance Leonard
Lance Leonard

Reputation: 3285

Given that support for conditional comments was removed from IE10, I would recommend against using them at this point in time. It's 2017; time to move on. (That's my take, anyway; YMMV.)

I would consider providing a bare bones version of the site designed for any browser other than your preferred one (which, conveniently, also helps you support experiences you didn't plan for).

Upvotes: 1

Related Questions