News for hackers. Stuff that matters.
Re:How Laravel Livewire works by hazz99 on Wednesday October 13, 2021 @09:41AM (#28851929)
With webview based applications becoming more and more common, maybe HTML is all we’ll ever need.
Re:How Laravel Livewire works by raihansaputra on Wednesday October 13, 2021 @09:48AM (#28852003)
I'm a Front End Dev and work with SPAs for the past 2 years. Working an offline-enabled PWA powered by Svelte and Redux. Honestly, I have a hunch that an HTML-based oriented development can still provide a great (measured) offline experience, without needing to rebuild wholesale to SPA.

It's a totally different ballgame if the app is mostly client-side utility anyway (calculators, etc), but the HTML + a bit of JS handling Service Worker and offline presentation should enable a great offline experience. I haven't seen it done in a large scale, but it should work.

Re:How Laravel Livewire works by osrec on Wednesday October 13, 2021 @11:30AM (#28853435)
Not if you want to adjust your views to different screen sizes and types.
Re:How Laravel Livewire works by danjac on Wednesday October 13, 2021 @01:54PM (#28855288)
Re:How Laravel Livewire works by osrec on Wednesday October 13, 2021 @02:20PM (#28855547)
In the wild, media queries are simply not enough. Often you need some JavaScript to really make things workable on smaller screens.
Re:How Laravel Livewire works by jhgb on Wednesday October 13, 2021 @07:23PM (#28858770)
Why couldn't the client provide information to the server for selecting the appropriate HTML and CSS code for that particular client?
Re:How Laravel Livewire works by danjac on Wednesday October 13, 2021 @04:39PM (#28857391)
"Some Javascript" != SPA.