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

refactor: better way to ensure page has been loaded #106

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

mondaychen
Copy link
Contributor

closes #96

@mondaychen mondaychen self-assigned this Apr 8, 2024
@mondaychen mondaychen force-pushed the wait_for_html_render branch from c6da469 to 1bb7675 Compare April 8, 2024 23:34
return activeTab?.status === "complete";
},
200, // check every 200ms
100, // wait for up to 20 seconds (100*200ms)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a thought. 20s itself seems to be a long time, maybe better to couple with some UI indication of waiting such as showing "still waiting for the page to load" for every 5 second. This is not necessary though, because it's rare that some pages take ~20s to load.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! added issue #109

@mondaychen mondaychen merged commit 28d8e41 into main Apr 9, 2024
3 checks passed
@mondaychen mondaychen deleted the wait_for_html_render branch May 23, 2024 14:27
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.

Implement more sophisticated methods to detect whether the page has finished loading
2 participants