0

We're told "feature detection" is much more betterer than filtering by browsers/versions... so how do you ensure support for specific versions of multiple libraries?!

I don't know what features I'm relying on directly, just what min requirements are for each library!? So when I have a constellation of libraries, what should I do to ensure the user's browser is going to support them all?

EDIT: It seems here's a partial answer, but what do you do in your production systems to warn users that their user experience may not be complete due to an old ass browser?

Community
  • 1
  • 1
Campbeln
  • 2,880
  • 3
  • 33
  • 33

1 Answers1

0

There is a great lib to do the Feature detection called: modernizr

However, I wonder how can you know exactly what features are required by those libs?

Usually I would just check the requirements by reading their docs, then I would check Can I Use / ECMAScript Compatibility Table to have glance of roughly how many people will be kicked out.

Also, if you use ES6+/CSS3+, Babel and PostCSS can do some polyfill for you automatically

Paris Qian Sen
  • 1,020
  • 10
  • 21
  • The libs generally state IE8+, FFx+, Safari 6+, etc. hence the complete uselessness of feature detection. – Campbeln Apr 27 '16 at 02:58
  • I think IE is the only browser we need to worry about. The rest are all so called ever-green browsers. I personally don't use any polyfills at all in my personal project, because I don't care IE users. – Paris Qian Sen Apr 27 '16 at 03:10