Native Solid rendering
One Solid component, five ways to load it. Each counter starts at zero and keeps its own count. Most arrive as HTML before their JavaScript loads.
On page load
client:load makes this counter interactive as soon as the page loads.
When the browser is idle
client:idle waits until the browser has time after loading the page.
When it becomes visible
client:visible loads this counter when it enters the viewport. Scroll down to try it.
On wider screens
client:media activates at a viewport width of at least 768 pixels. On smaller screens you see the initial HTML; widen the window to interact.
Loading browser counter…
client:only skips server rendering and creates this counter in the browser.
Loading browser counter…