We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
First of all – great project!
I wondered: would it be possible to "wait" for an XHR request to complete before the page is statically rendered?
For example, an Elm app on init could make a Http.get request and then perform an update.
init
Http.get
update
At the moment, the "Loading" state would be statically rendered, while the ideal situation would be it actually renders the requested data.
The more I think about this, the more complex it is 😅
The text was updated successfully, but these errors were encountered:
The html generation part is based on puppeteer:
puppeteer
await page.goto(`${conf.startingDomain}${url}`, {waitUntil: 'networkidle0'});
From the documentation:
https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#pagegotourl-options
Other info at puppeteer/puppeteer#1552
Sorry, something went wrong.
I should probably add this as parameter as different website could have different preference
lucamug
No branches or pull requests
First of all – great project!
I wondered: would it be possible to "wait" for an XHR request to complete before the page is statically rendered?
For example, an Elm app on
init
could make aHttp.get
request and then perform anupdate
.At the moment, the "Loading" state would be statically rendered, while the ideal situation would be it actually renders the requested data.
The more I think about this, the more complex it is 😅
The text was updated successfully, but these errors were encountered: