prebid / prebid.github.io

Repo that controls Prebid.org website
http://prebid.org
Apache License 2.0
65 stars 1.14k forks source link

Proposal: put gzip package size on download page #5402

Open patmmccann opened 1 month ago

patmmccann commented 1 month ago

I would really love it if the download page looked like this:

bidderx (13k) biddery (2k) bidderz (37k) rtdmodulei (15k+)

where the + indicates they load external script according to https://github.com/prebid/Prebid.js/blob/03d7059502eed8d4cd7deefe457bd786c233aa3f/src/adloader.js#L6

muuki88 commented 3 weeks ago

This would indeed be a nice thing to have. Question is, how to determine the size

patmmccann commented 2 weeks ago

I'm not sure, definitely minified. For the target, whatever the precompiled one in the download page is using.

dgirardi commented 2 weeks ago

Could we use this as an opportunity to overhaul the download page? To avoid reoccurring issues like https://github.com/prebid/Prebid.js/issues/11811 or https://github.com/prebid/Prebid.js/issues/9037. Instead of generating a list of modules from docs, it should IMO display the modules available for the selected version, and show a placeholder / warning if no docs can be found for any given module.