News for hackers. Stuff that matters.
Re:UnsuckJS: Progressively enhance HTML with lightweight Jav... by robertoandred on Thursday June 15, 2023 @04:31PM (#36346104)
Which means any content would be rendered after page load, worsening performance compared to frameworks like Next.
Re:UnsuckJS: Progressively enhance HTML with lightweight Jav... by Zizizizz on Thursday June 15, 2023 @05:36PM (#36346851)
No it doesn't, for some of these at least you can render the page server side and the reactive components become reactive a bit later on, isn't that how next would work as well? It's a blend of server side and front end interactivity right?
Re:UnsuckJS: Progressively enhance HTML with lightweight Jav... by robertoandred on Thursday June 15, 2023 @05:53PM (#36347120)
You can’t render server side if you only use the library in a client-side script tag.
Re:UnsuckJS: Progressively enhance HTML with lightweight Jav... by Zizizizz on Friday June 16, 2023 @01:50AM (#36351973)
https://htmx.org so with this, the button will be there, but clicking on it might not do something until it's been fetched