polyfills icon indicating copy to clipboard operation
polyfills copied to clipboard

List of browser versions where this polyfill is NOT needed

Open sijakret opened this issue 3 years ago • 5 comments

Hi all,

my understanding is that this polyfill (suite) is not needed at all in most up-to-date browsers. Is there some sort of overview that has this information?

Something along the lines of

  • Chrome >= 70 => not needed
  • Safari >= 12 => not needed
  • Firefox ..
  • Edge ..

This would be very helpful.

Background: I feel many projects include the polyfills even though they don't need it at all since people are afraid they might be breaking things..

Regards Jan

sijakret avatar Dec 06 '21 07:12 sijakret

see : https://github.com/mrhenry/core-web/blob/main/packages/core-web-generator/src/custom-polyfills/generate-webcomponents.ts#L279

This file contains mappings of different features and browsers that require the polyfill.

romainmenke avatar Dec 29 '21 20:12 romainmenke

thanks a lot! However, to me this looks like safari pulls in ALL of them, or am i reading it the wrong way!?

sijakret avatar Jan 17 '22 10:01 sijakret

However, to me this looks like safari pulls in ALL of them, or am i reading it the wrong way!?

Which line(s) make it look that way?

romainmenke avatar Jan 17 '22 11:01 romainmenke

Double checked and there are indeed still some with safari: * These I haven't figured out how to test and verify if they are needed.

These are features I don't personally use.

If you now how to test and detect them you could add a feature test here : https://github.com/mrhenry/web-tests

For example : https://github.com/mrhenry/web-tests/blob/main/specifications/whatwg/html/4.13.4.customElements.define/test.pure.js

After a few days the tests results should show which browsers require the polyfill.

romainmenke avatar Jan 17 '22 16:01 romainmenke

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 21 '23 04:01 stale[bot]