Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

With HTTP streaming the browser shows that it's still loading data. Is there some mitigation for it after the initial loading?


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.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: