An Objective Analysis of AI's Impact on Page Weight

What has happened with page weight with the adoption of AI?

Recently, I read Addy Osmani’s book Web Performance Engineering in the Age of AI. In the book, he notes that LLMs optimize for the correctness of the output as it relates to the prompt and not necessarily for the performance of the code they generate.

Anecdotally, I’ve noticed that LLM-produced code and agents are often more verbose than code written from scratch. In tandem with my work on this article, I’ve also had interesting discussions about this phenomenon in my network. This article takes an objective look at AI’s impact on the web at scale as these tools gain adoption and become more incorporated into the development process.

Data Source

This analysis uses data from the HTTPArchive, a public dataset with millions of records that is invaluable for analyzing trends in the web at scale. It has also been around long enough that it has enough information to set a baseline for the metrics before the adoption of AI.

I chose to focus on Page Weight and JavaScript Weight. If AI-generated code contributes to larger page weights, we would expect a steeper growth rate post-AI. Examining this correlation helps understand AI’s impact on web development. Monitoring JavaScript weight is particularly important because JS is the most computationally expensive asset byte-for-byte, and a disproportionate increase suggests a higher risk of performance regressions.

LLM Correlation

To correlate LLM usage with changes in page weight, I identified major milestones for the three key players in the AI space: Anthropic, ChatGPT, and Gemini. Using public release notes, I annotated the dataset to mark these inflection points. I’ve used the release of ChatGPT-3.5 in November 2022 as the beginning of the AI era for this exploration.

Releases

  • November 2022: GPT-3.5
  • March 2023: GPT-4
  • July 2023: Claude 2.0
  • November 2023: Claude 2.1
  • March 2024: Claude 3
  • May 2024: GPT-4o
  • February 2025: Gemini 2.0 Pro
  • March 2025: Gemini 2.5 Pro
  • May 2025: Claude 4
  • August 2025: GPT-5
  • November 2025: Gemini 3 Pro

Page Weight Analysis

The page weight analysis examines p50, p75, and p90 data from the HTTPArchive. While page weights were already increasing steadily before AI, I applied a piecewise linear function to each dataset to highlight changes in the AI era.

View the data
dateclientp50p75p90
Mar-26desktop2988.15987.112617.7
Mar-26mobile2641.45318.611491.4
Feb-26desktop2967.65943.412468.3
Feb-26mobile2629527611337.4
Jan-26desktop29505939.712483.2
Jan-26mobile2593.45228.311308.2
Dec-25desktop2930.65877.412344
Dec-25mobile2606.75221.711222.1
Nov-25desktop2923.15854.812275.9
Nov-25mobile2608.85244.311184.3
Oct-25desktop2914.55831.112204.3
Oct-25mobile2606.75230.711112.7
Sep-25desktop29205842.612221.3
Sep-25mobile2604.15233.211079.6
Aug-25desktop2940.45867.512195.5
Aug-25mobile2617.65234.811036.7
Jul-25desktop2865.65721.111979.3
Jul-25mobile2562.55132.910854.8
Jun-25desktop2809.95617.711757.6
Jun-25mobile2526.25060.610703.8
May-25desktop2797.95585.711675.2
May-25mobile2519.95036.110602.1
Apr-25desktop2758549111404
Apr-25mobile2477.34934.310338.9
Mar-25desktop2705.95408.211179.1
Mar-25mobile2443.24870.510176.5
Feb-25desktop26785356.111104.6
Feb-25mobile2409.84817.710082.8
Jan-25desktop2677.95375.111171.9
Jan-25mobile2374.14747.69936.7
Dec-24desktop2675.75363.511122.2
Dec-24mobile2379.84802.310101.5
Nov-24desktop2675.2538511161
Nov-24mobile2356.64727.59827
Oct-24desktop2655.1533111025.8
Oct-24mobile2313.74659.39704.2
Sep-24desktop2668.3531410623.2
Sep-24mobile2348.64695.59648.5
Aug-24desktop2675.45310.910573.5
Aug-24mobile2365.24709.59614.1
Jul-24desktop2669.55299.410525.6
Jul-24mobile2364.74712.39647.9
Jun-24desktop2643.55257.410407.5
Jun-24mobile2360.547079607.5
May-24desktop2610.95196.710289.7
May-24mobile2333.34648.59513.7
Apr-24desktop2591.35162.110199
Apr-24mobile2302.34601.19386.9
Mar-24desktop2565.95114.110095.8
Mar-24mobile2277.34543.49309.3
Feb-24desktop2543.65076.110022.3
Feb-24mobile2251.74491.59201.3
Jan-24desktop2505.350099941.2
Jan-24mobile2228.94424.79088.4
Dec-23desktop2497.549949899.1
Dec-23mobile2216.14410.49049.1
Nov-23desktop2467.54948.79799.3
Nov-23mobile2190.24379.18985.2
Oct-23desktop2445.349529789
Oct-23mobile21744386.18981.5
Sep-23desktop2485.74984.39810.2
Sep-23mobile2175.94377.48962.9
Aug-23desktop24844967.49743.8
Aug-23mobile2179.14376.88946.1
Jul-23desktop2449.44882.79609.3
Jul-23mobile2157.74331.38858
Jun-23desktop2419.64831.79505
Jun-23mobile2126.74282.98747.8
May-23desktop2393.84791.69376.2
May-23mobile2095.44213.48593.7
Apr-23desktop2361.14721.29238.5
Apr-23mobile2076.94167.88488.5
Mar-23desktop2340.64674.69165.4
Mar-23mobile2058.34133.48420.4
Feb-23desktop2324.84651.19135.4
Feb-23mobile2037.34101.58340.4
Jan-23desktop2286.34609.49051.6
Jan-23mobile2006.64076.88296.9
Dec-22desktop2280.84606.39038.5
Dec-22mobile2006.740788271.9
Nov-22desktop2282.84597.58984.9
Nov-22mobile2003.34058.28210.5
Oct-22desktop228445949004.3
Oct-22mobile20104058.48195.4
Sep-22desktop2291.646099000.3
Sep-22mobile20144062.58191
Aug-22desktop22624560.98932.6
Aug-22mobile2007.34053.28164.6
Jul-22desktop2314.44628.39033.4
Jul-22mobile2040.44077.98164.2
Jun-22desktop2317.84648.19071.4
Jun-22mobile2022.540478089.7
May-22desktop2301.64611.79006.6
May-22mobile2003.24008.48019.7
Apr-22desktop2203.84391.68502.7
Apr-22mobile2010.63988.67687.6
Mar-22desktop2165.54311.78319.4
Mar-22mobile1974.13917.87564.6
Feb-22desktop21594287.68271
Feb-22mobile1984.13961.27574
Jan-22desktop2174.14298.78204.6
Jan-22mobile1957.63831.47038.8
Dec-21desktop21734303.38215.2
Dec-21mobile1935.23775.66965.1
Nov-21desktop2173.34292.88162.5
Nov-21mobile1940.43787.16967.4
Oct-21desktop2204.84327.88196.6
Oct-21mobile1950.93794.46956.1
Sep-21desktop2198.44323.48189.2
Sep-21mobile1941.53778.76945.6
Aug-21desktop2174.24276.78106.6
Aug-21mobile1925.93752.36895.6
Jul-21desktop2148.74223.78001.2
Jul-21mobile1920.13733.96854
Jun-21desktop2124.14139.87729
Jun-21mobile191437336840.7
May-21desktop2123.64142.27701.7
May-21mobile1917.43750.36850.4
Apr-21desktop2096.84096.77609.5
Apr-21mobile1896.23703.26779.4
Mar-21desktop20634009.77444.8
Mar-21mobile1900.13696.96763.5
Feb-21desktop2037.73980.97418.9
Feb-21mobile1875.83669.76706.9
Jan-21desktop2038.43993.47452
Jan-21mobile1879.33747.37044.6
Dec-20desktop2042.33996.87419.6
Dec-20mobile1891.23706.26735
Nov-20desktop2020.33941.87330.6
Nov-20mobile1876.33651.86663
Oct-20desktop2062.43997.37396.6
Oct-20mobile1891.63671.76703.3
Sep-20desktop2105.34047.37464.7
Sep-20mobile1930.73720.26770.6
Aug-20desktop2098.84037.57442.3
Aug-20mobile1917.537136775.3
Jul-20desktop20593964.67309.2
Jul-20mobile1916.83715.76779.2
Jun-20desktop200038657131.7
Jun-20mobile185236116607.4
May-20desktop2007.93888.67155.1
May-20mobile1851.93590.16489.7
Apr-20desktop2031.93913.47192
Apr-20mobile1864.23605.46510.5
Mar-20desktop2080.23987.27310.6
Mar-20mobile1885.33624.76548.6
Feb-20desktop1957.93818.67067
Feb-20mobile1791.83493.26362.1
Jan-20desktop1969.638427128.4
Jan-20mobile1770.43462.96322.1

p50

For p50, the slope of the lines shows a sharper increase in page weight in the post-AI date range for both desktop and mobile. This indicates a clear acceleration in page weight growth in the AI era. Notably, the p50 data shows the most significant before-and-after change in slope compared to p75 and p90.

Median page weight from January 2020 to March 2026

p75

At p75, the slope also increases in the AI era for desktop and mobile, though the difference is less pronounced than it is in the p50 data.

p75 page weight from January 2020 to March 2026

p90

The trend is harder to distinguish at p90, but slopes still increase in the AI era for both desktop and mobile. Similar to p75, the change in slope is less dramatic than that seen in the p50 data.

p90 page weight from January 2020 to March 2026

JavaScript Weight Analysis

The JavaScript weight analysis follows the same approach as page weight. Like overall page weight, JS weight has been trending upward for years. Since JS is computationally expensive, I was curious to see if the increase in JS was proportionate to the increase in total page weight.

View the data
dateclientp50p75p90
Mar-26desktop785.11450.42252.8
Mar-26mobile701.61338.52069.2
Feb-26desktop780.11424.32214.4
Feb-26mobile700.11317.52030.7
Jan-26desktop771.81429.42209.8
Jan-26mobile689.913092010.9
Dec-25desktop763.61406.12180.1
Dec-25mobile6891312.82018.9
Nov-25desktop757.11396.32176.1
Nov-25mobile6831316.12053.7
Oct-25desktop755.81389.42158.9
Oct-25mobile679.513202052.3
Sep-25desktop756.11390.12193.3
Sep-25mobile677.61312.52056.7
Aug-25desktop747.51388.12247.4
Aug-25mobile673.91316.22104
Jul-25desktop729.11316.72050.2
Jul-25mobile663.91256.11958.6
Jun-25desktop7021257.11969.2
Jun-25mobile642.41205.11885.3
May-25desktop702.81258.51959.8
May-25mobile6421209.21878.1
Apr-25desktop684.11227.41921.3
Apr-25mobile629.51164.41813.6
Mar-25desktop6621203.41889.8
Mar-25mobile6111145.31788.5
Feb-25desktop654.31192.91865.3
Feb-25mobile602.11126.71751.6
Jan-25desktop665.31209.31869.1
Jan-25mobile606.41131.31747.5
Dec-24desktop652.11192.21845.9
Dec-24mobile591.31115.51732.3
Nov-24desktop649.71179.31825.2
Nov-24mobile584.61100.81696.6
Oct-24desktop648.31196.11864.3
Oct-24mobile576.41107.11729.9
Sep-24desktop655.31222.51908.2
Sep-24mobile586.31130.81773.1
Aug-24desktop654.61223.41919.2
Aug-24mobile590.51139.61790.4
Jul-24desktop6481219.31917.4
Jul-24mobile586.911371787.4
Jun-24desktop639.71214.81906.9
Jun-24mobile583.21139.71784.7
May-24desktop627.41190.31886
May-24mobile575.61111.31767.2
Apr-24desktop62211911890.8
Apr-24mobile5731110.31765.7
Mar-24desktop616.21188.71893.7
Mar-24mobile565.51103.41755.7
Feb-24desktop6081167.41853
Feb-24mobile558.810881717.6
Jan-24desktop601.11155.11832.6
Jan-24mobile552.61076.11702.5
Dec-23desktop595.51145.21800.5
Dec-23mobile547.61066.71684.5
Nov-23desktop588.61138.21802.7
Nov-23mobile538.11050.61673.2
Oct-23desktop571.31096.81760.8
Oct-23mobile525.81017.41633.5
Sep-23desktop5901153.41822.4
Sep-23mobile532.81051.91681.2
Aug-23desktop5871134.11799.8
Aug-23mobile533.31043.81663.8
Jul-23desktop577.31117.61768.8
Jul-23mobile526.61029.21639.4
Jun-23desktop560.51086.51736.2
Jun-23mobile512.11004.21609
May-23desktop550.61066.11703.9
May-23mobile503.8980.81566.6
Apr-23desktop533.81031.21632.6
Apr-23mobile489.4952.51512.4
Mar-23desktop5301022.61620
Mar-23mobile485.8941.11499.5
Feb-23desktop529.21012.91611.2
Feb-23mobile484.2934.51488.8
Jan-23desktop508.5968.91553.7
Jan-23mobile468.7900.21441
Dec-22desktop506961.51535.9
Dec-22mobile467.5892.81422.8
Nov-22desktop507.6964.61538.8
Nov-22mobile467.4893.71419.3
Oct-22desktop515.6966.71540.1
Oct-22mobile469.8888.71411.6
Sep-22desktop5149621531
Sep-22mobile469.8886.81409.5
Aug-22desktop496.9933.11490.3
Aug-22mobile461.3865.91378.8
Jul-22desktop512.6946.61509.3
Jul-22mobile469.8870.51385.3
Jun-22desktop523.5955.41518.9
Jun-22mobile473.9869.31381.1
May-22desktop517.79461502.8
May-22mobile469.2861.21365.3
Apr-22desktop508.1928.41465.7
Apr-22mobile462.6857.41371.5
Mar-22desktop499.7909.31438.9
Mar-22mobile455.2839.71342.7
Feb-22desktop500.7907.71439.9
Feb-22mobile452.7831.61334
Jan-22desktop497.79071435.8
Jan-22mobile452.2830.71330.3
Dec-21desktop492.3899.71425.5
Dec-21mobile446821.31318.2
Nov-21desktop490.3895.81419.5
Nov-21mobile444.4818.51311.4
Oct-21desktop505.6918.81456.3
Oct-21mobile452832.71332.7
Sep-21desktop495.3898.51418
Sep-21mobile447.6818.51301.1
Aug-21desktop484.7875.91383.6
Aug-21mobile442804.11277.7
Jul-21desktop476.4863.71367.4
Jul-21mobile439799.31268.1
Jun-21desktop473.88641361.4
Jun-21mobile437.2800.61272.8
May-21desktop475.1877.11385
May-21mobile439.8813.11292.5
Apr-21desktop470.1864.71368.3
Apr-21mobile436.18051279.3
Mar-21desktop465.6853.91343.8
Mar-21mobile429.9792.21259.5
Feb-21desktop463.9850.91338.5
Feb-21mobile4277881255.1
Jan-21desktop448.7825.81299.5
Jan-21mobile414764.31224.3
Dec-20desktop449822.81291.8
Dec-20mobile413.7761.61220.5
Nov-20desktop444.9817.71286.6
Nov-20mobile410.5756.61214.5
Oct-20desktop451.7827.61313.5
Oct-20mobile412.6760.61233
Sep-20desktop465.4844.71334
Sep-20mobile426.4780.11256.3
Aug-20desktop458839.81337
Aug-20mobile424.4782.51265
Jul-20desktop453828.11322.9
Jul-20mobile421.5773.51253.7
Jun-20desktop447.7817.91296.3
Jun-20mobile415.3759.81228.6
May-20desktop456830.41314.8
May-20mobile424.6772.61243.7
Apr-20desktop449.2815.51285.1
Apr-20mobile416.8757.41220.4
Mar-20desktop450.5808.81267.2
Mar-20mobile413.5746.81201.5
Feb-20desktop430.9779.91225.7
Feb-20mobile395.6717.21156.5
Jan-20desktop426.77811229.7
Jan-20mobile392.8719.91159

p50

For p50, the post-AI slope for JS weight shows a sharper increase for both desktop and mobile. The post-AI acceleration for JS at p50 is steeper than any of the overall page weight trends, meaning the growth in JS weight is accelerating faster than page weight as a whole.

Median JavaScript weight from January 2020 to March 2026

p75

For p75, the slope of the lines increases in the post-AI date range for both desktop and mobile. When compared to the page weight at p75, the change in slope in the before-and-after data for JS is more pronounced.

p75 JavaScript weight from January 2020 to March 2026

p90

At p90, slopes also increase post-AI for desktop and mobile. As with p75, this shift is more pronounced for JS than it is for overall page weight at p90.

p90 JavaScript weight from January 2020 to March 2026

Conclusion

The adoption of AI correlates with a significant increase in both page weight and JavaScript weight. These trends are consistent across p50, p75, and p90, with the most pronounced effects at the median (p50). This acceleration is particularly concerning for JavaScript, given its high computational cost.

* Thanks to Barry Pollard for his help with the data. He’s always answering questions from the performance community as a whole, and we’re lucky to have him. You’re a good one, Barry!

I'm Ethan Gardner. I help organizations turn web performance into a competitive advantage and improve developer velocity with design systems. Interested in consulting, audits, or workshops? Reach out.