News for hackers. Stuff that matters.
Re:Htmx 2.0.0 has been released by niutech on Tuesday June 18, 2024 @10:41AM (#40718386)
You deleted 500 lines of JS and added 44KB of (minified) HTMX. Better use HTMZ, which is only 166 bytes (sic!) and provides most of the interactivity: https://leanrada.com/htmz/
Re:Htmx 2.0.0 has been released by jordiburgos on Tuesday June 18, 2024 @12:00PM (#40719343)
The problem is not the download size. The problem is the amount of code to maintain.
Re:Htmx 2.0.0 has been released by niutech on Tuesday June 18, 2024 @04:53PM (#40722110)
It's both. All the JS code has to be parsed and interpreted by web browser, which is affecting especially low end smartphones. Better use plain HTML and CSS whenever possible, see e.g. PHOOOS: https://github.com/niutech/phooos (demo: https://kodus.pl)
Re:Htmx 2.0.0 has been released by selcuka on Tuesday June 18, 2024 @09:10PM (#40723753)
I don't think the author of the original comment would really care about the download size, given that it was an "internal self serve web app".

htmz looks very cool, though.