3 ms·
<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 p
by bgirard 3y ago
<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.
- simonw 3y agoIf 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.
- bgirard 3y agoFrameworks need product code.
- flying-pig 3y agoWith 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.