diff --git a/src/nativeAssetManager.js b/src/nativeAssetManager.js index a030803..370c6cf 100644 --- a/src/nativeAssetManager.js +++ b/src/nativeAssetManager.js @@ -333,11 +333,17 @@ export function newNativeAssetManager(win, nativeTag, mkMessenger = prebidMessen renderPayload.ortb = data.ortb; } + // if there's a rendererUrl, we need to check whether it's already been loaded. + // There are 3 scenarios: + // 1) it's already been loaded (window.renderAd is present) + // 2) it is currently being loaded (through a script tag with id "pb-native-renderer") + // 3) it hasn't been loaded yet + // 1 and 2 seem intended to work with logic in nativeRenderManager.js, which (sometimes) loads rendererUrl through a