Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js/index-1.ts: seamless autorefresh support #4

Merged
merged 1 commit into from
Jul 26, 2023
Merged

Conversation

amyipdev
Copy link
Owner

This patch adds seamless autorefresh. Every 60 seconds, the client will re-fetch the statistics data. Because the table is built in the background, it won't be modified until it's completely ready - all the browser has to do, essentially, is re-parse the HTML once it's pushed from generate_table into the DOM, a relatively fast operation compared to the other JS operations which have to happen for the table to be recreated.

Signed-off-by: Amy Parker amy@amyip.net

This patch adds seamless autorefresh. Every 60 seconds, the client will re-fetch the statistics data. Because the table is built in the background, it won't be modified until it's completely ready - all the browser has to do, essentially, is re-parse the HTML once it's pushed from generate_table into the DOM, a relatively fast operation compared to the other JS operations which have to happen for the table to be recreated.

Signed-off-by: Amy Parker <amy@amyip.net>
@amyipdev amyipdev merged commit f7e2054 into main Jul 26, 2023
@amyipdev amyipdev deleted the autorefresh branch August 12, 2023 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant