Skip to content
dz.Selected work Back to home

Performance · Tools for Humanity

A faster first load.

After a redesign shipped, one key page was slow to show its main content. I traced the cause with Datadog RUM and fixed its database queries and media.

Problem

After a product redesign, one page took too long to show its main content. I used Datadog real user monitoring (RUM) to look at Largest Contentful Paint (LCP) on real visits, then traced which queries and media assets the first load was waiting on.

Scope: one page, and what it loads on first render: backend queries, images, and video.

Approach

Queries and indexes

I added database indexes and split some of the queries the initial load depended on.

Images and video

I optimized the images and video that were slowing the first load.

Outcome

Key-page LCP · about 62% lower

Key-page LCP from about 5.5 seconds to about 2.1 seconds.

LCP for one page, from Datadog RUM. Both numbers are approximate.

What I took from it

The cause was not in one layer. I only understood the first load once I looked at the database queries and the media assets together.