diff --git a/dev-docs/publisher-api-reference/setConfig.md b/dev-docs/publisher-api-reference/setConfig.md index 43957cffb6..9e865cea81 100644 --- a/dev-docs/publisher-api-reference/setConfig.md +++ b/dev-docs/publisher-api-reference/setConfig.md @@ -125,6 +125,26 @@ pbjs.setConfig({ }); ``` +### Change prerendering behavior + +When a page is [prerendered](https://developer.chrome.com/docs/web-platform/prerender-pages), by default Prebid will delay auctions until the page is activated. + +You can disable this behavior with `allowPrerendering`: + +```javascript +pbjs.setConfig({ + allowPrerendering: true +}) +``` + +Alternatively you may delay execution of the entire Prebid.js queue (not just auctions) with `delayPrerendering`: + +```javascript +pbjs.delayPrerendering = true; +``` + +Note that `delayPrerendering` is a property of the `pbjs` global and not a normal setting ; this is because it takes effect (and delays) any call to `setConfig`. + ### Send All Bids