WebViewerShutdownOptions
-
class
wv.WebViewerShutdownOptions() Options for
IWebViewer.shutdown.
Properties
-
wv.WebViewerShutdownOptions.keepCore optional
keepCore: booleanWhether to keep this
WebViewer‘s underlying engine core available for a subsequently createdWebViewerto reuse, instead of reloading and reinitializing the engine from scratch.Defaults to
true. Set tofalseonly when you know for certain that this is the lastWebVieweryou will create on this page (or at least this engine core) – doing so immediately frees the shared engine resources (GL buffer pools, the shader cache, …) this instance’s core was holding onto, rather than leaving them for a futureWebViewerto potentially reuse. SeeWebViewer.releaseEngineResourcesfor freeing resources across every idle core at once instead, e.g. from abeforeunloadhandler.