Elektrine lite

← Feed

@Michaelcarducci@mastodon.social

2025-11-27 23:57 UTC

@sil scaffold a blank react app and run tokei on the node-modules dir. Fundamentally, HTML is not designed for highly interactive web apps. To quote Roy Fielding: “Rest is optimized for the common case of the web… large grain hypermedia transfer…” But fielding also gave us the optional code-on-demand constraint to dynamically extend the hypermedia. This is _not_ how SPA frameworks work, but it is exactly why a little library like htmx are so effective. https://sufficiently-advanced.technology/post/third-way-web-development-part-i

Replies (1)

  • @jamesh@aus.social 2025-11-28 00:58

    @Michaelcarducci @sil That doesn't sound like the right metric to use. It'd be like counting all of the source in libc against a C hello world program, rather than just the bits used to implement printf(). Code present in the node_modules directory that is never sent to the client is not going to affect the page load time. Maybe some of the dependencies could be split into smaller parts, but that isn't cost free either.

    Open ##1564157