Optimizing Frontend Performance with Modern Browser Capabilities

Your landing page fetches data from 20+ APIs. The user expects it to load in 2 seconds. Most frontend engineers would reach for Promise.all and call it a day. That approach is wrong and I wrote 4,000 words explaining why. (It's a very very deep dive and solution oriented) HTTP 103 Early Hints. The RSC Flight Protocol. WHATWG Streams with backpressure. Transferable ReadableStreams piped through Web Workers. Origin Private File System. scheduler.yield(). Speculation Rules API. These are all shipping browser capabilities. Today. Right now. Most of us have never used them. I wrote a deep-dive system design on how to architect a frontend that fetches massive data from N sources and still paints meaningful content in under 500ms. No bullet-point listicle. Just the actual engineering. check the link in the comment! #React #Javascript #Frontend #SystemDesign

  • graphical user interface, website

Ujjwal Tiwari Amazing article!! I have completed reading half of the article. People usually throw generic solutions for every frontend architecture. Most medium articles in frontend just list down every possible performance improvement technique without ever mentioning the use case, target audience, business use case, tech challenges ets. Your article stood out for me as it clearly sets the expectations, details the challenges and then moved to building the solution. Amazing👏

Great article Ujjwal Tiwari ! Thoroughly enjoyed reading it. Not directly related but one thing I’m genuinely excited for is also the Speculation Rules API to make the subsequent page loads ever so slightly less painful. https://developer.mozilla.org/en-US/docs/Web/API/Speculation_Rules_API

This is where the industry is heading labels matter less, problem-solving matters more. Builders >>> titles.

ok i read it honestly the most goated frontend article ive ever read thanks for sharing

Promise.all is even wrong at the case when you are calling the same API with different parameters that will indirectly impact the database as well.

This is very well written. Thanks for sharing.

can’t we just waterfall in the content with multiple fetches?

See more comments

To view or add a comment, sign in

Explore content categories