News for hackers. Stuff that matters.
Re:Improving Performance with HTTP Streaming by dmw_ng on Thursday May 18, 2023 @03:28AM (#35985003)
What if the assets are a list of URLs computed incrementally? In my app's case, the specific JS bundle variant to load is itself a result of a database query. It's easy to see many scenarios where the majority of assets (e.g. say photos) aren't known prior to building the response body
Re:Improving Performance with HTTP Streaming by byroot on Thursday May 18, 2023 @03:33AM (#35985027)
But you can emit as many 103 as you want. So you can start by sending the statically known assets, and then emit an extra 103 each time you are at the stage where the other assets are known.