Skip to content

Instantly share code, notes, and snippets.

@anilanar
anilanar / safari-nomodule.html
Last active March 9, 2024 13:53 — forked from samthor/safari-nomodule.js
Safari 10.1 `nomodule` support
<!--
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__ = [
@anilanar
anilanar / .block
Last active April 19, 2016 18:07 — forked from mbostock/.block
selection.order
license: gpl-3.0