Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions dev-docs/publisher-api-reference/setConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ The `auctionOptions` object controls aspects related to auctions.
| `secondaryBidders` | Optional | Array of Strings | Specifies bidders that the Prebid auction will no longer wait for before determining the auction has completed. This may be helpful if you find there are a number of low performing and/or high timeout bidders in your page's rotation. |
| `suppressStaleRender` | Optional | Boolean | When true, prevents `banner` bids from being rendered more than once. It should only be enabled after auto-refreshing is implemented correctly. Default is false. |
| `suppressExpiredRender` | Optional | Boolean | When true, prevent bids from being rendered if TTL is reached. Default is false. |
| `legacyRender` | Optional | Boolean | When true, uses "legacy" rendering logic (see [note](#note-legacyRender)) |
| `legacyRender` | Optional | Boolean | When true, uses "legacy" rendering logic (see [note](#legacyRender)) |
| `rejectUnknownMediaTypes` | Optional | Boolean | Since Pbjs 11, When true, reject bids when the adapter response omits `mediaType` for an ad unit that has explicit `mediaTypes` configured. Default is false. |
| `rejectInvalidMediaTypes` | Optional | Boolean | Since Pbjs 11, When true, reject bids when response `mediaType` does not match one of the ad unit's configured `mediaTypes`. Default is true. |

Expand Down Expand Up @@ -1408,14 +1408,21 @@ PBJS performs the following actions when expired rendering is detected.

Expired winning bids will continue to be rendered unless `suppressExpiredRender` is set to true. Events including `STALE_RENDER` and `BID_WON` are unaffected by this option.

<a id="note-legacyRender"></a>
<a id="legacyRender"></a>

#### More on `legacyRender`
{: .no_toc}
#### More on Legacy Rendering

Since Prebid 10.12, `pbjs.renderAd` wraps creatives in an additional iframe. This can cause problems for some creatives
Since Prebid 10.12, [`renderAd`](/dev-docs/publisher-api-reference/renderAd.html) wraps creatives in an additional iframe. This can cause problems for some creatives
that try to reach the top window and do not expect to find the extra iframe. You may set `legacyRender: true` to revert
to pre-10.12 rendering logic.
to pre-10.12 rendering logic:

```javascript
pbjs.setConfig({
auctionOptions: {
legacyRender: true
}
});
```

<a name="setConfig-maxNestedIframes"></a>

Expand Down
16 changes: 16 additions & 0 deletions dev-docs/publisher-api-reference/yield.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
layout: api_prebidjs
title: pbjs.yield
description: yield setting
sidebarType: 1
---

Since version 10, [pbjs.processQueue](/dev-docs/publisher-api-reference/processQueue.html) yields the main browser thread after executing each command in the queue, to improve UX (and some related metrics such as [interaction to next paint](https://web.dev/articles/inp)).

You can disable yielding by setting `pbjs.yield` to `false`:

```javascript
pbjs.yield = false;

pbjs.que.push(/* ... */)
```
Loading