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

chore(create-screenshots.sh): change file mode to executable refactor(puppeteer.js): reformat launch arguments for readability, replace hardcoded viewport dimensions with variables feat(puppeteer.js): change page load strategy to 'networkidle2' for more reliable screenshot capture #138

Merged
merged 3 commits into from
Nov 27, 2023

Conversation

robinmordasiewicz
Copy link
Owner

The file mode of create-screenshots.sh was changed to executable to allow direct execution of the script. The launch arguments in puppeteer.js were reformatted and spread across multiple lines for better readability and maintainability. The hardcoded viewport dimensions were replaced with variables for flexibility and to avoid magic numbers. The page load strategy was changed to 'networkidle2' to ensure that all network connections are idle before capturing the screenshot, providing a more reliable screenshot of the fully loaded page.

refactor(puppeteer.js): reformat launch arguments for readability, replace hardcoded viewport dimensions with variables
feat(puppeteer.js): change page load strategy to 'networkidle2' for more reliable screenshot capture

The file mode of create-screenshots.sh was changed to executable to allow direct execution of the script. The launch arguments in puppeteer.js were reformatted and spread across multiple lines for better readability and maintainability. The hardcoded viewport dimensions were replaced with variables for flexibility and to avoid magic numbers. The page load strategy was changed to 'networkidle2' to ensure that all network connections are idle before capturing the screenshot, providing a more reliable screenshot of the fully loaded page.
@robinmordasiewicz robinmordasiewicz merged commit 36affbe into main Nov 27, 2023
@robinmordasiewicz robinmordasiewicz deleted the docs-65 branch November 27, 2023 23:24
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