-
Notifications
You must be signed in to change notification settings - Fork 634
Finish PuppeteerRenderer #129
Comments
Tested on Linux : Thanks for you work, I can remove Intl polyfill ! |
Yeah, you'll need to set one of the available "renderAfter..." options before it will render anything. Otherwise it just dumps the HTML to a file before the JS executes. |
await page.goto(pageUrl, { waitUntil: "networkidle" }); will solve all problems (or |
@stereobooster Ah, thanks for the tip! I'll have to take a look sometime. |
This is just a beginning of a journey:
|
@stereobooster Duly noted. Your project looks great, by the way. I'm not finding time to work on this yet, so it might be a while before I have anything useful over here. |
@stereobooster It would appear that |
await page.setRequestInterception(true)
page.on('request', request => {
if (/* third party request*/) {
// don't need to download those
request.abort()
}
}) |
As of "Async snapshots" (term taken from geelen/react-snapshot#30). I believe there are two good approaches here:
|
Hmm, interesting. |
Uses Google Chrome's puppeteer to render page instead of PhantomJS. This currently intended as the default renderer for
v3
.The current version is functional, but not fully tested.
I don't have easy access to a functional Windows or macOS dev environment at the moment, so if anyone could test on those platforms, that would be great.
The text was updated successfully, but these errors were encountered: