You can use some command line switches to improve the capture performance:
First, you can ignore all images with --load-images=no
. There's no need to load images when doing the HTML snapshots.
You can also enable the cache with --disk-cache=yes
(use --max-disk-cache-size
to set its size in bytes)
Finally, the WebPage#onResourceRequested
callback may also be useful to abort some requests (trackers, media files...) with the NetworkRequest#abort
method.