Frameworks performance
How JavaScript frameworks score across LCP, INP and CLS.
At a glance the headline numbers for Frameworks performance
How JavaScript frameworks score across LCP, INP and CLS.
The ranking sorted by LCP at p75, fastest first
| # | Framework | LCP p75 | Passing | Sites | |
|---|---|---|---|---|---|
| 1 | htmx | 1.7s | 97.3% | 141 | |
| 2 | Alpine.js | 1.7s | 92.8% | 1,306 | |
| 3 | Svelte | 1.9s | 88.3% | 219 | |
| 4 | Next.js | 2.0s | 86.1% | 854 | |
| 5 | jQuery | 2.0s | 85.5% | 67,958 | |
| 6 | Vue | 2.1s | 83.0% | 5,677 | |
| 7 | Gatsby | 2.2s | 83.0% | 105 | |
| 8 | React | 2.3s | 80.5% | 4,396 | |
| 9 | Nuxt | 2.5s | 75.8% | 628 | |
| 10 | Angular | 2.5s | 74.1% | 1,658 |
Passing LCP per framework which group passes the LCP most often
97% of htmx sites pass LCP. Angular trails 23 points behind, leaving 26% of its sites failing. computed
All five vitals at once the whole category without toggling - cell is the pass rate, small number the p75
One row per framework, one column per vital - the cell is the share of sites passing, the small number the p75. No toggling needed to see where the category actually differs.
htmx leads on LCP: 97% of its sites pass. Angular trails at 74%. computed
Why this matters for the Core Web Vitals, and where to start fixing it
A JavaScript framework shapes how much code runs in the browser to put your page on the screen. Some render on the server and ship light; others send a large bundle and rebuild the page on the client, which lands on the main thread and shows up in INP. The framework is not destiny, but its defaults and how you use them decide how much JavaScript the visitor has to pay for.
Start by looking at what ships to the browser and when it runs. Render on the server where you can, split the bundle so each page only loads what it needs, and defer the work that is not required for the first interaction. Framework JavaScript runs on the main thread, so the less of it the browser has to execute, the better INP gets.
How does your framework affect Core Web Vitals?
Among the JavaScript frameworks, htmx reaches a good LCP on 97.3% of sites; Angular on 74.1%.
Chrome field data from 94,910 sites, representing millions of real page loads. How we measured.