@amatiash/j-cache

Add $window, $document, $doc and $body to the global scope

Usage no npm install needed!

<script type="module">
  import amatiashJCache from 'https://cdn.skypack.dev/@amatiash/j-cache';
</script>

README

j-cache

Instead of $(window), $(document.documentElement), $(document) and $(document.body)

write

$window, $html, $document (or $doc) and $body.