The 100-Score Trap: What a Second PageSpeed Audit Finds on a "Finished" Static Blog
The 100-Score Trap: What a Second PageSpeed Audit Finds on a "Finished" Static Blog The most dangerous moment in a performance project is not the first red score. It is the first green one. After a long rebuild, wuhua
The 100-Score Trap: What a Second PageSpeed Audit Finds on a "Finished" Static Blog
The most dangerous moment in a performance project is not the first red score. It is the first green one.
After a long rebuild, wuhuajin.com finally reached a PageSpeed Insights mobile Performance score of 100. The desktop score was 99. FCP was 1.0 second on mobile, LCP was 1.1 seconds, TBT was 0 milliseconds, and CLS was 0.013. A previous run had even produced 99 and 97. By every visible measure, the work was done.
Then I ran a second audit.
It did not find a slow page. It found a page that had been optimized for one score while three other things were still wrong: accessibility, third-party duplication, and a new discovery file that returned 403. That is the trap of a single green number. Performance is a category, not a verdict.
This article is about what a second audit found on a site that already looked finished, why most of it did not require another rendering rewrite, and which findings I deliberately refused to fix.
A 100 performance score is not a 100 site
PageSpeed Insights reports several categories. Performance is the one everyone quotes, but accessibility, best practices, and SEO are separate scores with separate rules. My second report looked like this:
| Device | Performance | FCP | LCP | TBT | CLS | Speed Index |
|---|---|---|---|---|---|---|
| Mobile, Moto G emulation | 100 | 1.0 s | 1.1 s | 0 ms | 0.013 | 2.5 s |
| Desktop | 99 | 0.3 s | 0.3 s | 0 ms | 0.020 | 1.2 s |
Accessibility was 93. Best practices and SEO were 100.
That 93 was not noise. It had a concrete cause: the ★ Featured badge used a gold foreground on a pale yellow background, a contrast ratio of about 2.9:1. WCAG AA requires 4.5:1 for normal text. Five elements failed on mobile and seven on desktop. The same report also flagged six sidebar links — About, Terms, Contact, AIGC Policy, Privacy, Products — because their touch targets were shorter than 24 CSS pixels.
Neither problem had anything to do with the critical rendering path. The page was fast; it was not equally usable.
The first lesson is simple: a performance score measures what the Performance category measures, not whether the page is finished. If the goal is a quality site, the other categories have to be read too.
The report is lab data, not a field report
There is a second category error that is easy to make after a good run: treating PageSpeed Insights as if it were Google Search Console's Core Web Vitals report.
It is not. PageSpeed Insights runs Lighthouse in a controlled environment. It simulates a device and a network, then produces a score from a single synthetic session. Search Console's Core Web Vitals are field data collected from real users over a 28-day window. They answer different questions.
Lab data is excellent for diagnosis: it tells you what changed between two builds and which resource sits on the critical path. It is poor for declaring victory, because a single run can move several points without any code change.
My two latest runs are a small example:
- 13:09: mobile 99, desktop 97.
- 13:12: mobile 100, desktop 99.
Nothing was deployed between them. The difference was run-to-run variance. Chasing 97 to 99 with another script change would have been optimizing the noise, not the page.
A practical rule: use three runs and look at the median; use GSC field data for the verdict; use one run only to locate a regression. If the median is already above 99 and the field data is healthy, the next hour is better spent on accessibility or correctness than on another kilobyte.
Finding 1: the badge that failed contrast
The contrast failure was almost embarrassingly small in code terms. The badge looked like this:
.feed-card .fc-featured {
background: #fff1cc;
color: #b8860b;
}
The color was chosen because it looked like a gold "featured" label. On the pale background, it did not have enough luminance difference. The measured ratio was about 2.9:1, far below the 4.5:1 threshold.
The fix was a single color token:
.feed-card .fc-featured {
background: #fff1cc;
color: #8a6508;
}
That moved the ratio to roughly 4.74:1. A darker #7a5a00 would have reached about 5.69:1, but the badge is decorative metadata, not body copy; 4.74:1 was enough to pass without making the label look like an error state.
The useful part is not the hex value. It is the audit path: the failure was attached to every instance of the same component. Fixing the component fixed five mobile and seven desktop elements at once. When a visual token fails, fix the token, not the individual labels.
Finding 2: links that were readable but hard to tap
The sidebar links passed every visual check. They were 13px text in a three-column grid, aligned neatly, with normal spacing. They failed target-size because a finger is not a cursor.
The original rule had no minimum height:
.sb-links a {
font-size: 13px;
color: #666;
text-decoration: none;
white-space: nowrap;
}
The fix was to make each link a small flex box with a real hit area:
.sb-links a {
display: inline-flex;
align-items: center;
min-height: 24px;
padding: 2px 4px;
margin: -2px -4px;
font-size: 13px;
color: #666;
text-decoration: none;
white-space: nowrap;
}
The negative margin is the interesting part. Padding grows the hit target; the negative margin pulls the visual box back so the grid does not shift. Without it, the three-column sidebar becomes a different layout. With it, the links look the same but are easier to tap.
This is a common pattern in dense sidebars: the visual size and the interactive size do not have to be the same. A 24px target can still look like a 16px text link.
Finding 3: two analytics scripts doing one job
The second audit also showed a third-party cost that the performance score had hidden. The page loaded two independent page-view counters:
- a first-party GoatCounter pixel;
- Cloudflare Web Analytics'
beacon.min.js.
The Cloudflare beacon was about 10 KiB, used 9–10 ms of main-thread time, and added 10.4 KiB of legacy JavaScript. More importantly, it appeared in the network dependency tree, stretching the critical path to 3.3 seconds on mobile and 2.2 seconds on desktop in the report's model.
The site did not need both. GoatCounter already provided page views and referrers. Cloudflare's beacon was a second copy of the same intent with a different vendor.
I removed the Cloudflare snippet from the homepage, the root static pages, and the article template used by the build. Then I checked the generated article pages, because deleting a script from a template is not the same as deleting it from every already-built page.
There is a deployment trap here: removing the snippet from your HTML does not necessarily remove the script from the response. If the analytics product is enabled at the edge, the CDN can inject the beacon after your origin. The code change and the dashboard change have to happen together. Otherwise the audit keeps finding a script that no longer exists in the repository.
The result was not a dramatic score jump — the page was already fast — but it removed a third-party dependency from the critical path and cut a duplicated data collection path. That is a better outcome than another tenth of a point.
Finding 4: seven-day caching on files that already had content hashes
The cache audit estimated 22–25 KiB of avoidable revalidation. The first-party JS and CSS were being served with a seven-day lifetime, even though every reference already carried a ?v=<sha1> query.
That is a mismatch. A versioned URL is a promise that the bytes behind that URL will not change. If the content changes, the query changes. Such a file can be cached for a year with immutable; a seven-day TTL throws away most of the benefit.
The safe split is by content type, not by file extension alone:
-
JS and CSS with content/version hashes: one year,
immutable. - HTML: short browser lifetime, short edge lifetime, purge after deploy.
- Images without content-hashed filenames: 30 days at first, not one year.
The last point matters. A file called hero.webp can be replaced in place. If it is cached for a year, the replacement is invisible to returning users. Either give images a content hash in the filename, or keep their TTL short enough that a human can recover from a replacement. "Cache everything forever" is only correct when the URL changes with the bytes.
This is the same principle as the earlier cache-layer article, applied to a site that had already adopted versioned JS and CSS but had not finished the header policy. The build system was ready; the serving layer was not.
Finding 5: a favicon stretched into a 288px cover
The image audit found a more visible version of the same mismatch: the site was using its 64×64 favicon as the cover image for four sidebar article cards, rendering it at 288×130. The favicon was 8.9 KiB. The browser was upscaling it into a blurry rectangle, and the layout was reserving a hero-image slot for an icon.
There was a second version in the banner: a 320×320 avatar displayed at 22–32px, wasting about 5 KiB for a circle smaller than a fingertip.
The fix was not "compress harder." It was to stop pretending a brand icon was editorial art:
- article cards without a real cover became text-only cards;
- the banner gained a separate 64×64 avatar field, so the large image stayed available for contexts that actually needed it;
- images that do have a real cover keep their
srcset, but the smallest candidate has to match the rendered size.
The general rule: an image should exist at the size it is displayed. A responsive srcset is not a substitute for choosing the right source. A 64px icon stretched to 288px is not a responsive image; it is a layout bug with a cache header.
Finding 6: the audit that had nothing to do with SEO
The newest report added an audit I had not seen before: ard-schema, with a message saying the ai-catalog.json could not be loaded.
The live checks were unambiguous:
-
/.well-known/ard.jsonreturned 403. -
/.well-known/ai-catalog.jsonreturned 403. -
/ai-catalog.jsonreturned 404. -
robots.txtreturned 200.
There were three separate causes, and fixing only one would not have changed the result:
- The files did not exist.
- Nginx was denying dot-directories by default.
- The publish script's public-file allowlist only collected root HTML/TXT/XML files and
src, so a.well-knowndirectory would never reach the public root.
The implementation was therefore three-part: add a minimal ARD manifest, add the rel="ard" discovery link on the homepage, include .well-known in the publish allowlist, and add an Nginx location that allows the directory before the generic dotfile deny rule.
A minimal entry does not need to describe an MCP server or an agent endpoint. For a content site, it can point at the homepage and the RSS feed, with a few representative queries. But the strategic point is more important than the JSON:
ARD is a discovery protocol for agent-callable resources. It is not a Google ranking factor. If the site has no API, no MCP server, and no agent endpoint, publishing the file is mostly about removing a red audit and making the site legible to future crawlers. It should not jump ahead of accessibility, cache correctness, or content work.
That ordering is exactly what a second audit is for: separating "a tool noticed this" from "a user is affected by this."
What I deliberately did not fix
A second audit can easily become a second optimization project. I stopped at the findings that had a clear user or correctness cost.
The report also showed:
- mobile CLS 0.013 and desktop CLS 0.020, both far below the 0.1 "good" threshold;
- one 102 ms long task on mobile, while TBT remained 0;
- an LCP breakdown that attributed 1.4–1.5 seconds to element render delay, while measured LCP was 1.1 seconds;
- a 97 versus 99 desktop difference between two runs with no deploy in between.
None of these justified another architecture change. CLS at 0.013 is already stable. A single 102 ms task with zero blocking time is not a bottleneck. The LCP breakdown is a model of a synthetic trace, not a field complaint. The 97-to-99 gap is variance.
The discipline is to write down a stop rule before looking at the next report. Mine is:
- Fix anything that fails a binary accessibility or correctness check.
- Fix anything that adds a third-party request to the critical path.
- Fix anything that makes a deployed change invisible to returning users.
- Fix anything that wastes more than 10 KiB on the first screen.
- Do not touch a metric that is already inside the "good" band unless field data says otherwise.
That rule turns an endless score chase into a short, defensible list.
A second-audit checklist
If you already have a green Performance score, the next audit should ask different questions:
-
Did accessibility move independently? Check
color-contrastandtarget-sizebefore celebrating the Performance category. - Is every third-party script still earning its place? Two analytics tools are one too many; a 10 KiB beacon on the critical path is not free because the score is 100.
-
Do versioned assets have versioned caching? A
?v=URL without a long TTL is a promise the server is not keeping. - Is any image displayed larger than its source? Favicon-as-cover is the usual symptom; the fix is to remove the image, not to upscale it.
- Are discovery files actually reachable? A local file is not a published file; check the CDN, the web server, and the deploy allowlist.
- Is the remaining work a user problem or a score problem? If it is only a score problem inside the good band, write it down and leave it alone.
The first audit tells you whether the page can be fast. The second tells you whether it is actually finished.
On this site, the second audit did not produce a new rendering architecture. It produced a shorter list: two accessibility fixes, one deleted analytics script, one cache policy, two image decisions, and one discovery file that needed a web-server rule.
That is a much better outcome than another 100.
This article describes the second PageSpeed audit on wuhuajin.com, a static blog built with plain HTML, CSS, and a small API. The numbers are lab measurements from the runs cited above, not a guarantee of field performance.
Originally published on wuhuajin.com.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.