Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
BordedDev260817hShould I tell you the secret on how to share 1 websocket between all your sites tabs? It will involve web workers
-
djsumdog667416h@BordedDev Yea I was about to say "websockets" but you beat me to it.
The modern web needs to die in a fire and Brendan Eich needs to apologize to the world for inventing Javascript. -
Lensflare2060016h@BordedDev are you saying that this is responsible for that issue with the loading stopping?
-
Lensflare2060016h@djsumdog amen
But the inventor of js is just another victim of this clown show.
He was forced to make a language for the browser which looks like Java.
The fuckers who took that dumpster fire and started to (ab)use it everywhere, are the ones to blame.
Including the ones who keep this shit train going. -
BordedDev260816h@Lensflare No, that's probably someone trying to be "smart" and stopping requests when the page has lost focus (I think SWR for react does something similar, but it re-requests on focus gain) - I've actually installed a plugin that prevents these checks because there are other sites that do that as well (at least I think I did at some point, was one of those privacy one).
The browser can choose to throttle/suspend a websocket though -
CaptainRant447415hTf man, this is like reading Palpatine. LOL
But yeah.. stop loading upon tab switch seems counterintuitive to the web. -
AlgoRythm5012811hIt needs to be a PWA where you’re in manual control of the cache and you need to add an event listener to the onblur of the window to halt all my resource loading when the window is out of focus
Is my guess. I haven’t googled it… -
I think some smart ass deliberately made it work like this. I can't see how is this happening out of the box.
Related Rants
-
linuxxx12Was thinking of a name for my currently biggest project and thought of a funny one, took the first letter of e...
-
linuxxx6There are two records in this table. I can confirm that the second one is currently being pulled. One of the...
-
lxmcf2
Got bored and threw a wrapper for devRant together and god damn it chromeOS why do you have to add a line to s...
One of our internal web apps stops loading the content when you switch to another tab.
How do you even implement horse shit like that?
I think you‘d have trouble to implement it even if it was a requirement. Fucking how?
Anyway, if you want to spend the long ass loading time by doing something else in another tab, then no!
Tough luck motherfucker!
You‘ll be watching that loading spinner like the rest of the thousands of users daily!
It‘s doing hard work loading all that crap for the convoluted clusterfuck of a web app!
You better appreciate that and watch it loading!
🤡
rant
how the fuck
web apps