This file contains hidden or 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
<!-- | |
Similar to https://gist.github.com/samthor/64b114e4a4f539915a95b91ffd340acc | |
But prevents Safari 10.1 from downloading ES5 scripts. | |
This is the only way I know to detect "module" support in <head>. | |
--> | |
<script> | |
// matrix of script sources. rows will be executed in order. | |
// first column is ES6, the second is ES5. | |
window.__SCRIPTS__ = [ |
This file contains hidden or 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
license: gpl-3.0 |