Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(dom): Improve DOM utils code for minification & tree-shaking (#1284
) * perf(dom): Improve code for minification & tree-shaking * Avoid polyfills Rather than polyfill, use native where available, and fallback to emulation function * Switch to faster 'Element.closest' polyfill Since we do not support IE 8 (or 9 for that matter), we can use the faster polyfill that uses the 'Element..matches' function. But since Element.matches may be a prefixed function in some browsers, we use our own `matches` handler * Update dom.js * Update dom.js * Update dom.js
- Loading branch information
1 parent
0b58a69
commit e1e701b
Showing
1 changed file
with
97 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters