Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

prebid.js size

Open mahammer opened this issue 7 years ago • 2 comments

I am really wondering why pbjs 2.x is such a behemoth? The pbjs 1.x builds with the adapters I needed are around 180kb. Now enter pbjs 2.x is moving towards 350kb.

That's a lot to load, especially on mobile devices. Could someone tell my why it grew or had to grow so much in size? The more you have to load, the later the auction can start, the less it becomes headerbidding ;)

mahammer avatar Mar 01 '19 10:03 mahammer

In PB 2.0 a few adapters contribute more net size. Particularly Criteo.

GLStephen avatar Mar 01 '19 13:03 GLStephen

Ah. Just tested 2.4 with just the GDPR module comes in at 122kb So there's literally 220kb of adapter piled on top. Thanks!

mahammer avatar Mar 01 '19 14:03 mahammer