Back to Publisher API Reference

pbjs.yield

Since version 10, pbjs.processQueue 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).

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

pbjs.yield = false;

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

Back to Publisher API Reference