Polyfill has an issue in chrome
pencilcheck opened this issue · 0 comments
pencilcheck commented
https://github.com/filamentgroup/loadCSS/blob/v2.0.1/src/cssrelpreload.js
I noticed that there are checks to stop doing polyfill if "support()" function returns true.
Yes on chrome this returns true but chrome doesn't automatically turn "preload" stylesheet into loading, and since reactjs, and nextjs rejected attributes injection such as onload, only polyfill can do this, therefore I suggest to create another version for those who can't have onload attribute inserted in SSR (or whatever reasons) another way to loadcss async that way.
All I did is remove the "support" checks in poly and the main execution.