Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dfpAdServerVideo auto include the adpod module on build, potential size saving? #10552

Closed
spormeon opened this issue Sep 29, 2023 · 4 comments
Closed

Comments

@spormeon
Copy link

spormeon commented Sep 29, 2023

question: does the video module auto include the adpod module on build, as I'm seeing the adpod module in my build but i'm not including it directly. If so, it would be good to be able to drop the adpod include, if possible, if dont need it, saves some 24kib by the looks of it

includes with videojs, not checked with jwplayer

not in modules:

modulesVideo_json_—_Prebid_js

but in build:
prebid_js_—_Prebid_js

@spormeon
Copy link
Author

it seems to be the "dfpAdServerVideo" module thats adding the "adpod" module as well

but then appnexus is adding "categoryTranslationMapping.js" with its adapter:
dependencies_json_—_Prebid_js

no clue if its even possible to "drop" these, if someone doesnt need/ use them, but seems like a way to save some "size"

@spormeon spormeon changed the title does Video module auto include the adpod module on build? dfpAdServerVideo auto include the adpod module on build, potential size saving? Sep 30, 2023
@dgirardi
Copy link
Collaborator

dgirardi commented Oct 2, 2023

dfpAdServerVideo and freeWheelAdserverVideo are set up as adpod submodules. adlooxAdServerVideo (the youngest) is not. I think this is probably a historical accident, to me it looks like in the beginning adpod was meant to be what outstream video is now.

The fix is unfortunately also a breaking change - marking this for 9.0

Appnexus is a different matter - categoryTranslationMapping.js is the library, not the module, and expected.

@patmmccann
Copy link
Collaborator

#4048 (comment) references this interestingly

@dgirardi
Copy link
Collaborator

proposal: move adpod logic in a new "dfpAdpodServerVideo"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants