JavaScript Hydration Is a Workaround, Not a Solution

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Purpose built for real-time analytics at any scale.
InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • miso

    :ramen: A tasty Haskell front-end framework

  • InfluxDB

    Purpose built for real-time analytics at any scale. InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.

    InfluxDB logo
  • htmx

    </> htmx - high power tools for HTML

  • joystick

    A full-stack JavaScript framework for building stable, easy-to-maintain apps and websites.

    The overhead is arbitrary if done properly. I did this in Joystick [1] and was shocked at how overcomplicated folks make it.

    You're literally just saying "render to static HTML on the server, and on the client, have a way to render a root component to screen and attach event handlers." Without any serious thoughts about optimization (practically none yet), a no-cache refresh/mount takes 227ms to DOMContentLoaded and 696ms to a full load.

    Here's the SSR I do:

    https://github.com/cheatcode/joystick/blob/development/node/...

    Here's the mount ("hydration"):

    https://github.com/cheatcode/joystick/blob/development/ui/sr...

    The only "magic" is that I embed the hydration logic into the built JS for the current page and it fires automatically on load (no need to add manual hydration code).

    [1] https://github.com/cheatcode/joystick

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • I was isekaid into developing a minimal-JavaScript online game using The Platform as much as I could and wrote about it 🧙

    1 project | dev.to | 5 Sep 2024
  • Kids who use ChatGPT as a study assistant do worse on tests

    1 project | news.ycombinator.com | 5 Sep 2024
  • Chat with HTMX, WebSockets and Hono

    1 project | dev.to | 6 Aug 2024
  • Getting Started with HTMX: A Beginner's Guide

    2 projects | dev.to | 25 Jul 2024
  • HTML-ivating your Django web app with Htmx, AlpineJS, and streaming HTML

    1 project | news.ycombinator.com | 1 Jul 2024

Did you konow that JavaScript is
the 3rd most popular programming language
based on number of metions?