Cleanup #50963
Tasks #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:
Tags:
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.
Related issues
History
#1 Updated by Alfonso Martínez over 2 years ago
- Assignee changed from Nizamudeen A to Alfonso Martínez
#2 Updated by Avan Thakkar about 2 years ago
Page visibility with RxJS https://netbasal.com/use-rxjs-to-modify-app-behavior-based-on-page-visibility-ce499c522be4
#3 Updated by Sarthak Gupta over 1 year ago
- Assignee changed from Alfonso Martínez to Sarthak Gupta
#4 Updated by Sarthak Gupta over 1 year ago
- Status changed from New to In Progress
- Pull request ID set to 46370
#5 Updated by Ernesto Puerta over 1 year ago
- Status changed from In Progress to Pending Backport
- Backport set to pacific quincy
#6 Updated by Backport Bot over 1 year ago
- Copied to Backport #56037: quincy: mgr/dashboard: stop polling when page is not visible added
#7 Updated by Backport Bot over 1 year ago
- Copied to Backport #56038: pacific: mgr/dashboard: stop polling when page is not visible added
#8 Updated by Nizamudeen A about 1 year ago
- Status changed from Pending Backport to Resolved