← Back to Page domain

Page.setPrerenderingAllowed

Enable/disable prerendering manually. This command is a short-term solution for https://crbug.com/1440085. See https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA for more details. TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets.

Domain: Page experimental

Parameters

NameTypeDescription
isAllowedboolean

Example Request

{
  "id": 1,
  "method": "Page.setPrerenderingAllowed",
  "params": {
    "isAllowed": true
  }
}

Example Response

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

Usage in Node.js

const result = await send('Page.setPrerenderingAllowed', {"isAllowed": true});
console.log(result);