Closed chunlaw closed 3 years ago
Hello @chunlaw, thanks a lot for your feedback, glad to hear that.
Yeah, rendering the page is time consuming and for large amount of pages can take a a bit long. I will definitely investigate this question and will be looking into adding performance optimization(or maybe just performance mode) in upcoming releases.
I have done some work for performance optimization based on your great ground work.
The major idea of my optimization is to simulate browsing rather than launching the browser and calling the expensive "page.goto". The performance is then optimized from ~3s to ~0.15s per page, and the idea itself also encourages me to improve my app's response time.
However, while the simulation is application-dependent, there might not be an easy way to generalize a package. Anyway, you save me from migrating the project framework like Gatsby. Thanks in advance.
Cheers!!
I am working on a project of a Hong Kong Bus ETA application (hkbus.app). The package works really well while generating all the pages (~4000 pages) takes quite a long time. Is there any chance to optimize the generating time?
P.S. Instead of switching to other frameworks such as Gatsby or React-static, your work does save a lot of development time for me.