Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bioneuralnet
10 months ago
|
parent
|
context
|
favorite
| on:
Back to basics: Why we chose long-polling over web...
I've gotten around this by using the Page Visibility API -
https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibi...
. Close the SSE connection when the page is hidden, and re-open when it becomes visible again.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: