Page.setPrerenderingAllowedEnable/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.
| Name | Type | Description |
|---|---|---|
isAllowed | boolean |
{
"id": 1,
"method": "Page.setPrerenderingAllowed",
"params": {
"isAllowed": true
}
}
{
"id": 1,
"result": {}
}
const result = await send('Page.setPrerenderingAllowed', {"isAllowed": true});
console.log(result);