← Back to Page domain

Page.produceCompilationCache

Requests backend to produce compilation cache for the specified scripts. `scripts` are appended to the list of scripts for which the cache would be produced. The list may be reset during page navigation. When script with a matching URL is encountered, the cache is optionally produced upon backend discretion, based on internal heuristics. See also: `Page.compilationCacheProduced`.

Domain: Page experimental

Parameters

NameTypeDescription
scriptsarray

Example Request

{
  "id": 1,
  "method": "Page.produceCompilationCache",
  "params": {
    "scripts": []
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Page.produceCompilationCache', {"scripts": []});
console.log(result);