Gatsby speed statistics: 82 websites measured
Updated
Gatsby is a React-based framework that generates static pages at build time, often fed by a headless CMS through its GraphQL data layer. Each page arrives as finished HTML; the browser then loads the React runtime, hydrates the whole page and prefetches code and data for linked pages in the background. Netlify acquired Gatsby in 2023, and the framework has received fewer major releases since; its sites combine static hosting with a full React app in the browser.
Core Web Vitals on Gatsby
48% of the 82 measured Gatsby websites pass all three Core Web Vitals with real-user data. Across all measured websites the figure is 52%.
| Metric | Good | Median | Middle half | Threshold |
|---|---|---|---|---|
| LCP | 77% | 2020 ms | 1562 ms – 2442 ms | 2500 ms |
| INP | 68% | 130 ms | 96 ms – 242 ms | 200 ms |
| CLS | 76% | 0.04 | 0.01 – 0.10 | 0.10 |
Median mobile Lighthouse score: 51. Why lab score and field data diverge is explained in the Website Speed Statistics.
Who runs Gatsby in this sample
Financial services are the largest group of Gatsby sites in this sample; the rest spread across e-commerce, software and many other industries without a clear focus. Most of them appear to be marketing and content sites built by development teams or agencies, many of them probably at a time when Gatsby was one of the leading React frameworks. The sample is small, so the values carry more uncertainty than on the larger platforms.
How to read your own Gatsby values
Read INP and total blocking time together. If both are high, the cause usually lies in the JavaScript of the build and the tags around it, not in the hosting, which on Gatsby is mostly a static CDN with a good time to first byte. A poor Lighthouse score next to passed Core Web Vitals is more common on Gatsby than on the average website, so the lab score alone is no reason for alarm; the field values decide. For a fair comparison, use the median of this sample and the Next.js page of this study, which shows another React stack.
More metrics: TTFB, FCP, TBT and Speed Index
Field TTFB and FCP come from phone visits to the measured page, usually the home page, or from the whole domain where that page has too few visits. TBT and Speed Index come from the mobile lab test of the same page. The Core Web Vitals above cover the whole domain across all devices. Thresholds and sources: Website Speed Statistics.
| Metric | Source | Good | Gatsby median | All websites median | Threshold |
|---|---|---|---|---|---|
| Time to First Byte | Field data | 68% | 652 ms | 718 ms | 800 ms |
| First Contentful Paint | Field data | 72% | 1332 ms | 1534 ms | 1800 ms |
| Total Blocking Time | Lab | 31% | 449 ms | 272 ms | 200 ms |
| Speed Index | Lab | 17% | 6615 ms | 7092 ms | 3400 ms |
Page weight and third-party code
A Gatsby home page transfers 3.9 MB at the median, of which 1.4 MB is JavaScript. 97% load third-party code, from a median of five providers.
| Provider | Share | Main thread (median) |
|---|---|---|
| Google Tag Manager | 75% | 406 ms |
| Google Analytics | 38% | < 1 ms |
| Google Ads (DoubleClick) | 36% | 1 ms |
| Google Fonts | 31% | < 1 ms |
| Meta (Facebook) | 29% | 233 ms |
| Other Google APIs and SDKs | 24% | < 1 ms |
Most common lab findings
| Finding | Share | Saving (median) |
|---|---|---|
| Unused JavaScript | 77% | 2100 ms |
| Images not properly sized | 75% | 2227 ms |
| Render-blocking resources | 63% | – |
| Images not in next-gen formats | 40% | 2251 ms |
| Unused CSS | 18% | 295 ms |
Typical Gatsby performance bottlenecks
INP is the weak spot: clearly fewer Gatsby sites reach a good INP than the average website, and the slower quarter of them responds much later than the slower quarter of all websites. In the lab, Gatsby home pages ship more JavaScript than average and total blocking time is higher, which fits a React hydration that runs on every page. Google Tag Manager is found on more Gatsby sites than on the average website and takes more main-thread time on them in the lab. CSS rarely gets in the way, because Gatsby inlines styles into the HTML, and render-blocking resources are flagged much less often than on the average website. In the lab, most of the LCP time goes into render delay, the wait between a loaded resource and its paint, and it lasts longer than on the average website, which often means the page is waiting for scripts or fonts.
Related guides: Interaction to Next Paint (INP) · Reduce unused JavaScript · Largest Contentful Paint (LCP)
Gatsby by industry in this sample
- Finance and insurance: 17%
- Software and SaaS: 6%
- Online retail: 6%
- Entertainment and leisure: 5%
Other platforms
How does your Gatsby site compare?
Run a free test and put your values next to the Gatsby median.