3 ms·
The mechanism for this already exists, and it saves the state of JS as well: https://web.dev/bfcache/ https://web.dev/bfcache/
by krackers 4y ago
The mechanism for this already exists, and it saves the state of JS as well: https://web.dev/bfcache/ https://web.dev/bfcache/
- fathyb 4y agoThis mechanism is not doing any serialization, it just disconnects the page from the renderer and puts it into a memory cache, keeping the v8 VM initiated, but paused. It cannot be used to save a tab into the disk. https://source.chromium.org/chromium/chromium/src/+/main:content/browser/renderer_host/stored_page.h;drc=e1591f7e48004bf610e6e53a4f213d032e221f23;l=36 https://source.chromium.org/chromium/chromium/src/+/main:con...