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

Use page.setContent to load the HTML page instead of writing an HTML page and use page.goto #654

Open
ggrossetie opened this issue Apr 23, 2022 · 1 comment

Comments

@ggrossetie
Copy link
Owner

It might be possible to use page.setContent to load the HTML page: https://github.com/puppeteer/puppeteer/blob/v13.6.0/docs/api.md#pagesetcontenthtml-options

This strategy would allow to avoid writing an HTML file on disk.

Related: #130

@ggrossetie
Copy link
Owner Author

It only works when the HTML document does not contain any linked local ressources (even if the path is absolute). It's also not possible to refresh a preview 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant