0.2.1 • Published 8 months ago

@stack54/island v0.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

stack54 island

Directives

load

<script island="load"></script>

idle

<script island="idle"></script>

media query

<script island="media" value="(max-width: 50em)"></script>

visible

<script island="visible"></script>
<!-- or -->
<script island="visible" value='{"rootMargin": "200px", "threshold": 1}'></script>

value has to be a valid JSON

Setup

npm install @stack54/island
// stack.config.js

import island from "@stack54/island";
import { defineConfig } from "stack54/config";

export default defineConfig({
  integrations: [island()],
});
0.2.1

8 months ago

0.2.0

9 months ago

0.1.0

9 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago