🗿 Mini jQuery alternative. Dependency-free animations. Locality of Behavior. Use one element or arrays transparently. Pairs with htmx. Vanilla querySelector() but better!
The Document.currentScript property returns the element whose script is currently being processed and isn't a JavaScript module. (For modules use import.meta instead.)
i'm basically doing:
<script type="module">
import { thing } from './thing.js';
thing(me());
</script>
from mdn docs:
https://developer.mozilla.org/en-US/docs/Web/API/Document/currentScript
i'm basically doing: