Remix.run Logo
javcasas 12 hours ago

> How much smaller is the data encoded as JSON than the same data encoded as an HTML table? Particularly if compression is enabled?

Well, as many things in life, it depends. If the cells are just text, there is no much difference. But, if the cells are components (for example, popover things or custom buttons that redirect to other parts of the site), the difference of not shipping all those components per cell and rendering them on the frontend starts to become noticeable.

swiftcoder 11 hours ago | parent [-]

How lucky then that WebComponents exist, and we don't actually have to ship the whole DOM for each cell...

javcasas 11 hours ago | parent [-]

So a backend-focused team that minimizes frontend is going to start fiddling with the DOM and shipping web components.

Sure, tell me more. I always enjoy a cool story.

swiftcoder 10 hours ago | parent [-]

Eh, I don't really think the frontend/backend distinction in webdev should exist. Your react components still get served from a backend too (even if they are static html).