cloud-gov / pages-core

cloud.gov Pages is a publishing platform for modern 21st Century IDEA websites.
https://cloud.gov/pages
Other
276 stars 68 forks source link

Fix auto-refresh pausing when browser window loses focus #4591

Closed sknep closed 1 month ago

sknep commented 2 months ago

see changes here: https://github.com/cloud-gov/pages-core/pull/4587/files#diff-548742ab1172c818289c1d77b6cc3c0beef1be20417e9c3e5defd6fa66a10fdeR51-R62

Customer reported autorefresh not working after button was removed. Able to reproduce the build status failing to update if the status change occurs while tabbed away (browser window lacks focus). Status does not update when returning to the build history page, so autorefresh seems broken, and without the button, the customer must actually refresh the page to see new status.

Alt-tabbing away or opening a new window while a build finishes is a normal/predictable behavior, but the refreshing pausing silently is not (at least to customers).