News for hackers. Stuff that matters.
Re:An SPA Alternative by simonw on Tuesday July 19, 2022 @05:09PM (#32158016)
It's faster. React apps often load hundreds of KBs - if not MBs - of code before they start to work. HTMX loads 10KB (gzipped).
Re:An SPA Alternative by threatofrain on Tuesday July 19, 2022 @05:19PM (#32158122)
Then use Preact, Solid or its ilk. Then your bundle size is going to be a tiny fraction of the kinds of things users tend to like, such as images.
Re:An SPA Alternative by tomnipotent on Tuesday July 19, 2022 @05:43PM (#32158372)
Doesn't really matter unless you're targeting low-bandwidth customers. The Amazon homepage is ~4MB, and an average user session is going to downloading many times that in additional images and markup while browsing. In that context, React or other JS files will be single-digit percentage of what was downloaded.