Re:Htmx Is the Future
by aidenn0 on Friday May 05, 2023 @12:20PM
(#35831456)
The first SPA I wrote, I wrote in React for my use and for the use of friends. I spent about 3 days getting it working and then 3 months getting it to usable performance on my phone. There were no analytics, no binary data (100% text), just a bunch of editable values and such. I ended up having to split it up into a bunch of tabs just to reduce the size of the vdom.
[ Parent
| on HN ]
Re:Htmx Is the Future
by robertoandred on Friday May 05, 2023 @01:10PM
(#35832223)
"The size of the vdom" would not destroy performance like you're saying.
I've been told that before. Maybe it was something else; I don't know.
All I know is that I was unable to figure out what it was, and I bounced it off a few people online, and the performance scaled inversely with the number of DOM nodes.
Re:Htmx Is the Future
by austinthetaco on Friday May 05, 2023 @04:00PM
(#35834424)
I would think you have something else wrong with the design. I've worked on some pretty complex and large react apps that worked flawlessly on some low-end mobile browsers. Maybe you're accidentally duplicating a LOT of dom nodes?