Applies the owner's Lighthouse targets

Three pages no longer need an exception and the homepage target rises to its
measured score, so the gain cannot slip away unnoticed. Also adds the third
unit's code summary and updates the shared docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-01 20:07:24 +01:00
co-authored by Claude Opus 5.5
parent 498be43020
commit b6d5a85e41
12 changed files with 181 additions and 44 deletions
+30 -25
View File
@@ -27,33 +27,39 @@ const notFoundPath = '/__audit/404';
// Mobile performance exceptions, keyed by path. Every entry needs a recorded
// decision and a floor below 0.9 (BR-HST-23); a page without an entry must
// reach 0.9. These are the temporary exceptions carried over from the
// frontend-shell feature, until the final measurement of prerendering:
// - the homepage (0.8): the photos are not responsive yet and the title only
// appears after the JavaScript (NFR-P-01).
// - the indexed content pages whose largest paint is a photo (0.85):
// Lighthouse simulates a slow connection and the photo is only requested
// once the main bundle and the page's own chunk have run, so they land on
// LCP ~3.2s and a score of ~0.895, right on 0.9 (measured on /over-mij and
// /soorten-fotoshoots; fewer image bytes do not move it). The shoot pages
// (largest paint: the first story photo) are in the same position.
const temporary = 'tijdelijk, tot de eindmeting van prerendering';
// reach 0.9. Decided by the owner on 2026-11-01 after the final measurement
// of prerendering (measurement-final.md):
// - /over-mij, /soorten-fotoshoots and the newborn page (0.91 to 0.92) have no
// exception any more.
// - zwangerschap and portret score around 0.90; with one run that is unreliable
// as a target, so their floor stays at 0.85.
// - the homepage (0.85 measured, floor raised from 0.8), gezin and loveshoot
// (0.89 and 0.88, floor 0.85) are recorded at their current score until the
// photos are responsive (NFR-P-01).
const unreliableAtNinety =
'scoort rond 0,90; met 1 run onbetrouwbaar als doel (eigenaar, 2026-11-01)';
const untilResponsivePhotos =
"bij de huidige score vastgelegd, tot responsive foto's (eigenaar, 2026-11-01)";
const mobileExceptions = {
'/': { minScore: 0.8, decision: temporary },
'/over-mij': { minScore: 0.85, decision: temporary },
'/soorten-fotoshoots': { minScore: 0.85, decision: temporary },
'/soorten-fotoshoots/newborn': { minScore: 0.85, decision: temporary },
'/soorten-fotoshoots/zwangerschap': { minScore: 0.85, decision: temporary },
'/soorten-fotoshoots/gezin': { minScore: 0.85, decision: temporary },
'/soorten-fotoshoots/loveshoot': { minScore: 0.85, decision: temporary },
'/soorten-fotoshoots/portret': { minScore: 0.85, decision: temporary },
'/': { minScore: 0.85, decision: untilResponsivePhotos },
'/soorten-fotoshoots/zwangerschap': {
minScore: 0.85,
decision: unreliableAtNinety,
},
'/soorten-fotoshoots/gezin': {
minScore: 0.85,
decision: untilResponsivePhotos,
},
'/soorten-fotoshoots/loveshoot': {
minScore: 0.85,
decision: untilResponsivePhotos,
},
'/soorten-fotoshoots/portret': {
minScore: 0.85,
decision: unreliableAtNinety,
},
};
// The exceptions of the content pages with a photo as largest paint
const photoPagePaths = Object.keys(mobileExceptions).filter(
(path) => path !== '/',
);
const validateExceptions = (exceptions, paths) => {
for (const [path, { minScore, decision }] of Object.entries(exceptions)) {
if (!paths.includes(path)) {
@@ -128,7 +134,6 @@ module.exports = {
indexedPaths,
noindexPaths,
notFoundPath,
photoPagePaths,
mobileExceptions,
validateExceptions,
buildIndexedEntries,