Menu

From 67 to 95: What Was Really Slowing Down Our Next.js Homepage
📰

From 67 to 95: What Was Really Slowing Down Our Next.js Homepage

DEV Community: nextjs·Eamon Cusic, Jr.·12 days ago
#P6m6KRHT
#devtonextjs#devto#dev#headline#homepage
Long article (1380 words) — no AI summary yet.
Reading 0:00
15s threshold

We sell website speed. So when our own redesigned homepage went live with a mobile PageSpeed score of 67 , it stung.

The design itself wasn't the problem. Three details were: decoration we had added on purpose and never measured, a framework setting meant to make pages faster , and one line of CSS on the headline. Fixing them took the homepage to 95-99 on mobile , with the main content showing in 1.3-1.7 seconds instead of about 5.

This post walks through all three, with the numbers, the code, and what we'd check on any site.

Who this is for: engineers working on Next.js (or any framework that renders on the server and hydrates in the browser), and owners who want to know why a site that looks fine on their laptop scores badly on Google's phone test.

The short version

If you are… Here's the headline

Business / product The page was carrying far more than it showed: hundreds of tiny animations and three copies of the same styling. Removing the duplicates made it lighter and let the headline appear first.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.