HotNewHipHop.com
HotNewHipHop is a high-traffic online magazine. I worked there, at UrbanLinx Inc. in Montreal, from 2017 to 2022. As a junior developer I built front-end features in vanilla JavaScript and third-party API integrations. From 2019, as senior web developer, I led the rewrite of the site from PHP to Next.js, for an audience of 30M+ monthly visitors.
The problem
The magazine ran on an older PHP Symfony platform with performance and scalability issues, and it was getting harder to maintain. The site is ad-supported, so the front end had to carry three things at once: the reading experience, SEO, and the ad stack. At 30M+ monthly visitors, any weakness in one of them reaches a very large audience.
Rebuilding the front end in Next.js
I rebuilt the front end with Next.js (Pages Router), with content served through the WordPress REST API. Working with a designer, I turned the designs into a responsive interface and built the main features: dynamic layouts, navigation and search. Data fetching and rendering were designed around performance and SEO from the start.
Behind the front end, I built scalable APIs and back ends for high traffic. I also mentored junior developers and led code reviews for the team.
Header bidding with Prebid.js
As senior developer I also built the site's header bidding with Prebid.js, connected to Google Ad Manager.
Header bidding runs an ad auction in the reader's browser before the ad server makes its decision. On each page, Prebid.js asks several supply-side platforms (SSPs) for bids on every ad slot in parallel. Each one has to answer within a timeout, so a slow partner can't hold up the page, and the auction closes with the bids that have arrived. The winning bids are passed to Google Ad Manager, which weighs them against its own demand, applies price floors and the line items set up for each price level, and decides which ad is shown.
That is one auction. A long article page has many ad slots, and they don't all load at once: slots further down the page are requested as the reader scrolls, each with its own auction. All of it has to run alongside the page instead of blocking it, and every slot needs a reserved size so the layout doesn't jump when an ad arrives. With this much traffic, small inefficiencies in any of these steps add up quickly.
Where it is now
I left HotNewHipHop in 2022. The new front end was faster and easier to maintain than the PHP platform it replaced, and it gave the magazine a base to keep growing on.