News for hackers. Stuff that matters.
Re:VanJS: A 0.9KB JavaScript UI framework by bgirard on Wednesday December 20, 2023 @10:22AM (#38709627)
<1KB is great and all, but part of the problem is that as soon as you add render blocking JavaScript you're adding a network round trip and JS on the critical path. <1KB might not feel like much, but it's not going to be very different than 10KB. Once you throw in non-trivial product code it doesn't matter at all.

Either you should statically/server generate your site, or you have rich content that needs a client side app and you should pick a framework with rich features.

Re:VanJS: A 0.9KB JavaScript UI framework by simonw on Wednesday December 20, 2023 @03:46PM (#38713431)
If you're worried about an extra network round-trip, <1KB is small enough that you could inline the entire framework into the <head> section of your document.
Re:VanJS: A 0.9KB JavaScript UI framework by bgirard on Thursday December 21, 2023 @04:40PM (#38727384)
Frameworks need product code.
Re:VanJS: A 0.9KB JavaScript UI framework by flying-pig on Thursday December 21, 2023 @05:53PM (#38728240)
With bundler like esbuild, all JS code, including 3rd party libraries can be bundled into a single file. You don't need an extra round trip for a library.