HTTP

This preloads data. A request will only be sent once when the document loads.
When preloading... Make sure your sn-http-preload's agree! Otherwise, you will still be fetching data twice.
...

This button POSTs to /data/test. If preloaded, this will fetch data via POST only when the event is triggered!

Ref

When the ref updates via timer-eval, a counter will be updated.
... ...

States

This button makes an HTTP request to /data/test.json on click and replaces its text with the "result" property. All listeners reflect the change.
State: ...


This uses sn-reflect-states to debug and view all registered states.
Currently registered states:

Pagination

Hello (...)
World (...)
Go to demo 1
Go to demo 2
Hi again (...)
There (...)
Go to demo 3
Go to demo 4

DOM

Clicking the button will clone it (via sn-copy).

Clicking the button will show an alert before removing it (via sn-rm).
Clicking the button will remove the strong element which has a ref (via sn-rm-ref).
Hello