Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Load prebid and GPT libraries in parallel #276
When implementing prebid.org I didn't like the fact that GPT was only loaded after all the bids were back. This resulted in a browser that was idly waiting for bid responses while it could be loading and parsing the GPT libraries.
It was fairly trivial to change this behaviour. I changed this example:
to what I have been using for a couple of months now:
The main changes:
This has been working flawlessly for me and this results in a rather nice speed boost because loading, parsing and running GPT takes quite a bit of time.