Wk-notes-11-19-A11y-Polyfill
Last updated
Was this helpful?
Last updated
Was this helpful?
role
is a promise, discribe what the element do
get all practice from
Tri-state checkbox: true/false/mixed
Slider: slide to get a value; multi-thumb slider: slider that pick a range
Spin button: have up and down to
IE11 does NOT support Array.prototype.includes
, it does NOT support new Set([iterable])
To reduce bundle size, hand pick polyfills, import modules from core-js
from babel-polyfill
In polyfills.js
In index.js
In npm project, import
can refer to any existing package from node_module
, even if it's nested from other dependency
import '/modules/my-module.js';
[!! Javascript import] Import a module for its side effects only : Import an entire module for side effects only, without importing anything. This runs the module's global code, but doesn't actually import any values.