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