Hacker News new | ask | show | jobs
by xiphias2 438 days ago
With HTTP streaming the browser shows that it's still loading data. Is there some mitigation for it after the initial loading?
3 comments

The fetch API is asynchronous. The initial page load would deliver the payload that then initiates the streaming connection in the background.
That sounds less like a problem with HTTP streaming (initiated from JavaScript) and more like a page with some hanging resource.
I'm guessing you would use JS to fetch() the stream resource separately.
Sure, it would be just cool to not have to do that
Not sure what you mean. How else are you going to make the request if not using fetch()?
You could use an iframe as well, with certain caveats.