3 ms·
> 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 lif
by javcasas 1y 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 1y agoHow lucky then that WebComponents exist, and we don't actually have to ship the whole DOM for each cell...
- javcasas 1y agoSo 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 1y agoEh, 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).