Skip to content

Commit

Permalink
add option to delay queue
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardi committed Feb 20, 2025
1 parent 4ef3181 commit c58b4c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prebid.js
Original file line number Diff line number Diff line change
Expand Up @@ -1023,13 +1023,13 @@ function processQueue(queue) {
/**
* @alias module:pbjs.processQueue
*/
pbjsInstance.processQueue = function () {
pbjsInstance.processQueue = delayIfPrerendering(() => getGlobal().delayPrerendering, function () {
pbjsInstance.que.push = pbjsInstance.cmd.push = quePush;
insertLocatorFrame();
hook.ready();
processQueue(pbjsInstance.que);
processQueue(pbjsInstance.cmd);
};
});

/**
* @alias module:pbjs.triggerBilling
Expand Down

0 comments on commit c58b4c9

Please sign in to comment.