What is the meaning of polyfills in HTML5?

后端 未结 5 596
说谎
说谎 2020-11-28 00:13

What is the meaning of polyfills in HTML5? I saw this word in many sites about HTML5, e.g. HTML5-Cross-Browser-Polyfills.

So here we\'re collecting al

5条回答
  •  难免孤独
    2020-11-28 00:47

    Here are some high level thoughts and info that might help, aside from the other answers.

    Pollyfills are like a compatability patch for specific browsers. Shims are changes to specific arguments. Fallbacks can be used if say a @mediaquery is not compatible with a browser.

    It kind of depends on the requirements of what your app/website needs to be compatible with.

    You cna check this site out for compatability of specific libraries with specific browsers. https://caniuse.com/

提交回复
热议问题