1. Home
  2. Blog
  3. SEO
SEO

The Two-Second Rule: Setting a Speed Budget and Keeping It

How to set a speed budget with headroom under Google's 2.5 second LCP line, measure it in the field, and stop a site slowing down again after launch.

Short answer

A speed budget is a written set of limits a site must stay inside. I set LCP under two seconds on mobile, which leaves room below Google's 2.5 second line, measure it with field data, test it in the lab before each release, and make every new script justify its cost.

In this article
  1. Why two seconds and not 2.5
  2. What a budget is made of
  3. The numbers I set
  4. Measure the field first, the lab second
  5. Split the two seconds into parts
  6. Enforce it before and after launch
  7. The rules that keep it from drifting
  8. What a budget does not fix
  9. FAQ

Key points

  • Google's good thresholds are LCP 2.5 seconds or less, INP 200 milliseconds or less and CLS 0.1 or less, measured at the 75th percentile.
  • I aim for two seconds LCP on mobile because the 75th percentile means a quarter of visits can be slower than the number I see.
  • web.dev says field data should drive priorities, and lab data is for debugging and testing before release.
  • Splitting LCP into four parts shows where the time goes, and web.dev warns not to turn the percentages into fixed milliseconds.
  • A budget drifts unless every new plugin, tag or font has a named cost and an owner.

Most sites get fast once. A developer spends a week on images, caching and scripts, the score goes green, and everyone moves on. Six months later a chat widget, two tracking tags and a slider have crept back in, and the site is slow again. Nobody decided that. It just happened, one small request at a time.

A speed budget stops that drift. It is a set of limits that the site must stay inside, agreed before anyone adds the next feature. My own rule is simple: LCP under two seconds on mobile. This post explains why I picked two seconds, how I set the other numbers, how I measure them, and how I keep the budget alive after launch. The Google and web.dev facts come from their own documentation, and the thresholds I chose are marked as mine.

Why two seconds and not 2.5

Google’s guidance on Core Web Vitals names three metrics: Largest Contentful Paint for loading, Interaction to Next Paint for responsiveness and Cumulative Layout Shift for visual stability. The “good” thresholds are 2.5 seconds or less for LCP, 200 milliseconds or less for INP and 0.1 or less for CLS. A page passes only if all three meet their targets at the 75th percentile of page loads, measured separately for mobile and desktop.

So Google’s line for LCP is 2.5 seconds. Why do I aim lower? Three reasons, all practical:

  • The line is measured on real visitors. The 75th percentile means a quarter of visits can be slower than the number you see. If your target equals the threshold, normal variation will push you over it.
  • Sites get heavier over time. A budget that starts at the limit has no room for the next script. A budget that starts under it gives you space to be wrong.
  • Faster is simply better for visitors. Google’s page on Core Web Vitals and Search says it highly recommends good Core Web Vitals for success with Search. It does not claim a direct ranking boost, and I do not either. I build fast pages because customers leave slow ones.

Two seconds is my choice, not a Google rule. If you run a very heavy catalogue, you might set 2.2 or 2.3 and ratchet down. The point is to pick a number with headroom below the official line and write it down.

What a budget is made of

The web.dev article Performance budgets 101 defines a budget as a set of limits imposed on metrics that affect site performance. It sorts the metrics into three kinds:

  • Quantity-based: page weight, request count, image size, number of fonts, script size. They are easy to explain to a team, but the article says they do not reflect user experience well, since load order matters.
  • Milestone timings: events such as First Contentful Paint, which shows when the first content appears.
  • Rule-based: scores from tools such as Lighthouse, based on best-practice rules.

The article recommends combining quantity-based limits with user-centred timings. I do the same. The timing is the goal. The quantity limits are the handrails that stop a developer from breaking the goal without knowing it.

The numbers I set

Here is the shape of the budget I put in front of a client. The first column is what is measured, the second is the official line, the third is my target and the fourth is where I read it.

Metric Google “good” line My budget Where I read it
LCP 2.5 seconds or less Under 2.0 seconds on mobile, at the 75th percentile Field data first, lab to debug
INP 200 milliseconds or less Stay inside the official line, and fail the release on any regression Field data only
CLS 0.1 or less Stay inside the official line, with reserved space for images, ads and embeds Field data, lab for the load phase
Page weight and requests No official number Set from the current best page, then lower it each quarter Lab, in the build check
Third-party scripts No official number Every new tag must be named, justified and given an owner Lab and a script inventory

Notice what I left out: invented limits for weight and requests. web.dev gives example budgets, such as under 170 KB of JavaScript on mobile for a product page, but it describes defaults built on older baseline devices and slow networks. I treat those as examples of how to write a limit, not as numbers to copy. I take the real number from the best page the site already has, then tighten it.

Measure the field first, the lab second

The biggest mistake I see is a budget written only against a lab score. web.dev’s article on lab and field data differences explains why this fails. Lab data comes from one device, one network and one location under set conditions. It is repeatable, which makes it good for debugging and for testing before release. Field data comes from real users and is a distribution. Tools that report a single Core Web Vitals field score use the 75th percentile.

The two disagree for known reasons. The article lists a few:

  • The LCP element can differ by screen size, login state, A/B tests and installed fonts.
  • Lab INP cannot be measured because there is no real user input, so Total Blocking Time is used as a stand-in. A page can have a good Total Blocking Time and a poor INP.
  • Lab CLS counts only shifts above the fold during load. Field CLS covers unexpected shifts across the whole life of the page.

The article says field data should drive prioritisation, and lab data is for debugging, pre-release testing and finding improvements. That is how I split the work. The budget is a field promise. The lab check is the fast test that catches a break before a visitor does.

A speed budget is a promise to real visitors, so write it against field data and test it in the lab.

Own-ur-Rehman Sheikh

For the field, I look at Search Console’s Core Web Vitals report, which Google recommends, and at the Chrome User Experience Report data shown in PageSpeed Insights. web.dev also suggests setting up your own real-user monitoring with the web-vitals library when you need per-pageview detail.

Split the two seconds into parts

Saying “LCP must be under two seconds” is not enough for a developer. They need to know which part to attack. The web.dev guide to optimising LCP breaks it into four subparts with ideal shares:

Subpart Ideal share What I check first
Time to first byte About 40% Redirects, page cache hit, CDN edge caching, server work
Resource load delay Under 10% Is the hero image in the HTML, not lazy-loaded, with fetch priority set sparingly
Resource load duration About 40% Image size, format and compression, plus competing downloads
Element render delay Under 10% Render-blocking CSS and synchronous scripts in the head

The article stresses that these shares are guidelines. It says to keep the two delay subparts close to zero, so that most of the time goes on loading the page and the main image. It also warns against turning the percentages into fixed millisecond values, because the parts only mean something relative to each other. I follow that. I do not write “TTFB must be 800 ms” into a budget. I write “LCP under two seconds” and then use the split to find where the time went when the number is missed.

On WooCommerce stores, the fixes that matter most sit in these parts. I covered the ones that mattered most on real stores in my WooCommerce LCP post, and the edge side of time to first byte in my Cloudflare settings post.

Enforce it before and after launch

A budget nobody checks is a wish. I enforce it at two points.

Before release

web.dev lists build-time tools for enforcing budgets, such as Lighthouse CI and bundlesize. The idea is that a build fails or warns when a threshold is crossed. For a WordPress theme, that means a lab run on the key templates, with a limit on the metrics I can read in the lab. When a limit is crossed, web.dev gives three options: optimise the asset or feature, remove it, or do not add it. I like that list because it makes clear that “ignore it” is not on it.

After release

Lab checks cannot see the real world, so I also watch field data on a schedule. A monthly look at the Search Console report and the page-level field numbers is enough for most sites. A drop in the field after a release points to the change that caused it, and a drop with no release points to a third-party script, a new ad slot or a change in traffic mix.

The rules that keep it from drifting

These are the rules I write into the project, because the budget fails at the moment someone wants a new feature:

  1. Every addition has a cost. A new plugin, tag, font or widget is added only with a note on what it costs in requests and in time.
  2. One in, one out. If a new script goes on a page, something of similar weight comes off, or the budget is raised in writing with a reason.
  3. Third parties get an owner. Every external script has a name next to it. No owner means no script.
  4. Reserve space. Images, embeds and ad slots get set dimensions so late content does not shift the layout.
  5. Test the templates, not just the home page. Product, category, cart, checkout and blog templates each get their own check, because they load different things.
  6. Ratchet down. When a template beats its budget by a clear margin for a few months, lower the limit.

What a budget does not fix

A budget tells you when you are over. It does not tell you why, and it cannot make a slow server fast. If time to first byte eats most of your two seconds, no amount of image work will save you, and you need to look at hosting, caching and the database. That is also why I split the target into parts, so the data points at the real cause.

It also will not make a page rank. Speed is one part of a good page experience, and Google says good Core Web Vitals align with what its ranking systems try to reward, not that they guarantee a place. Treat the budget as protection for the customer’s visit and for the money your pages make, and the search benefit follows as a side effect rather than a promise.

If you want the full picture of the three metrics and how to read them, Rank Ray has a detailed Core Web Vitals guide. My short version for any team is this: pick a number with headroom, write it down, test it before every release, watch it after, and make every new feature pay its way.

FAQ

What is a performance budget?

web.dev defines it as a set of limits imposed on metrics that affect site performance. The limits can be quantities such as page weight, timings such as First Contentful Paint, or rule-based scores from tools like Lighthouse.

What LCP should I aim for?

Google's good threshold is 2.5 seconds or less at the 75th percentile. I aim for under two seconds on mobile so that normal variation does not push the site over the official line.

Should I use lab data or field data for my budget?

Write the budget against field data, because it reflects real users. Use lab data to debug and to test before release, as web.dev recommends.

Why can Lighthouse and Search Console show different numbers?

Lighthouse is one device, network and location under set conditions. Field data is a distribution from real visits, reported at the 75th percentile, and it can differ for LCP, INP and CLS for known reasons.

Do Core Web Vitals directly improve rankings?

Google highly recommends good Core Web Vitals for success with Search but does not claim a direct ranking boost. It says they align with what its core ranking systems seek to reward.

Sources

  1. web.dev: Web Vitals
  2. web.dev: Performance budgets 101
  3. web.dev: Why lab and field data can be different
  4. web.dev: Optimize Largest Contentful Paint
  5. Google Search Central: Core Web Vitals and Google Search

Your turn · Rank Ray

Want to be found on Google and in AI answers?