Actions
Cleanup #50963
closedTasks #36451: mgr/dashboard: Scalability testing
mgr/dashboard: stop polling when page is not visible
% Done:
0%
Tags:
Backport:
pacific quincy
Reviewed:
Affected Versions:
Pull request ID:
Description
Modern browsers provide support to detect whether a page is visible by the user or not (https://www.w3.org/TR/page-visibility/).
We should rely on that to only poll the back-end when the browser tab is visible. That way we'd heavily reduce the load generated from the front-end. That might have an impact, for example, if a user has many Dashboard tabs opened, which would multiply the number of HTTP requests to the back-end.
Actions