Skip to content
Menu

2,070 ms of CPU on every page, from a single widget

A content platform with a paid members area and around 4,000 registered users: a site that looked fine and was losing speed, sales and subscribers in places no dashboard showed.

Measured on a real project

2,070ms

of CPU on every page, spent by a single anti-spam widget: more than triple all the JavaScript on the site.

Speed

The anti-spam widget and 178 KB of fonts that were never used made every page slow before any content appeared. Removing both cut the layout shift from 0.536 to 0.029, well inside Google's 0.1 limit.

A duplicate background call on every visit was costing about 14 hours of server CPU a day to deliver 71 bytes, with the first answer thrown away. Removing it took PageSpeed from 77 to 97.

The page cache was expiring pages faster than it could rebuild them. Once it was sized to what the site actually served, the median server response went from 1,450 ms to 318 ms.

Checkout

The database held 65,526 shopping carts against 261 orders ever placed. The paywall was adding a product to the cart of every visitor who only wanted to look. After the fix, carts created per visitor went from three to zero.

Because that cart persisted between attempts, a customer's second payment attempt was refused without any message, and the sale was lost with no trace.

Subscriptions

Reading the data per customer showed that 165 of 169 subscriptions had produced a single payment and never renewed. The dashboard total of 169 subscribers had been hiding a retention problem.

Tell us what is going wrong. We reply personally.

Get in touch