50% off your first 3 months See plans →
Writing

Engineering notes

Things that broke on our own sites, and what actually fixed them. Real numbers, including the ones that are still not good enough.

·6 min read ReactPerformanceNext.js

React.lazy() isn't enough — my code-split chunks were still loading on every page

Both components were already wrapped in lazy(). Both chunks downloaded on first paint anyway, costing 103KB on every page view. The reason is that lazy() defers the import until the component renders — and both were rendering.

Read it →

Get a free homepage mockup

Tell us about your business and we'll design a custom homepage concept within 48 hours — free, no strings attached.