Hacker News new | ask | show | jobs
by jozzy-james 1392 days ago
liveview still uses JS, its just rather out of the way in what it does

edit: livewire in laravel land does a similar approach - tho not as fast currently, leverages alpine.js under the hood

1 comments

While we use JS and websockets, even with js disabled or curling the page will send all the HTML. So the initial render is strictly a regular html page with all your expected content.
hate replying to something i already did - but i also never said liveview required JS, just...it still uses it if there. Liveview is a really slick answer to this whole thing, and I recommend readers of the thread to check out. And now I have nothing.
right, i get that - and liveview is a sick piece of kit, so congrats. just saying that for what most would use it for - it is still using some JS
i suppose i should have prefaced with liveview uses JS...if you intend to use JS or dynamically update anything

edit: much like the SSR being described