I have a PHP script which is more like a cron job. It refreshes the page every few seconds using the meta-refresh
tag. But I've noticed that when the tab is inactive, the refresh takes several seconds, sometimes even longer.
But when I switch to that tab, the existing refresh task finishes immediately at high priority and also the same for new refresh tasks.
My question is, how do I force the page to reload at high priority even if it's inactive?
Note:
I tried
location.reload()
as well aslocation.href=xxx
. Same issue while inactive.It's a local website so an unconventional solution like changing chrome advanced settings is completely fine.