3 ms·
The tweet text for those who don't want to visit Twitter: I started sending JavaScript, and no one noticed Status Pages used to be small (around 13KB), but th
by rozenmd 3y ago
The tweet text for those who don't want to visit Twitter:
I started sending JavaScript, and no one noticed
Status Pages used to be small (around 13KB), but they weren't necessarily fast. It still took a few hundred milliseconds to query a database, and convert that result into HTML.
I managed this by completely disabling JavaScript in our React framework (Remix). While a fun thing to brag about, this actually slowed down my ability to release new features at a high quality. Charting libraries that support being server-side rendered are surprisingly rare (and buggy). Tooltips required a workaround that added hundreds of DOM nodes to the page, slowing down the app.
Recently I snapped, and started sending JavaScript to users. This means users download approximately 265KB when they first load an OnlineOrNot Status Page (a 20x increase). No customers have complained, instead, folks are happy about new features being shipped.