V8 allows extra caching of code compilation to help improve load time of the page. This API allows you to interface with V8’s cache by building and loading caches with provided options, or automatically. This API is a work-in-progress and experimental, as it does not consider factors like being up to/out of date, etc. See this V8 post for some more information on code caching.
Build a V8 Cache of the current Gluon Window to a JSON file.
By default the build will be as eager as possible. There are extra optional options you can use for building, provided as an object:
eager- Use eager compilation (default: true)
includePreload- Try to include preload scripts in the V8 Cache (default: true)
reload- Reload the page to force script recompilation in order to cache (default: true)
path- Path to save the V8 Cache to, recommended to leave as default (default:
v8Cache.jsonin Gluon’s browser data)
urls- URLs of scripts to compile (default: automatically generated from current page)
Load a V8 Cache from a JSON file (optional). Gluon will automatically try to load a V8 Cache in the default path if it exists.
Path of V8 Cache to load, defaults to
v8Cache.json in Gluon’s browser data.
Check a V8 Cache JSON file exists.
Path of V8 Cache JSON file to check.