LIT-WEB-502 · Performance and Core Web Vitals
Отдельный файл отчёта для этой задачи не найден или не указан. Показан сохранённый результат задачи.
The report is PERF_502.md, in the audit workspace. I measured two copies of the site with a local Chromium (5 runs per page, median), baseline against an optimized copy. The optimized copy cuts transfer by about 45–55% on every measured page. I did not touch the source mirror and did not deploy anything.
Baseline problems
- Logo:
logo.svg is 378 KB and loads on every page. It is the favicon, the header logo and the logo section. - Contact form code: the contact form code is bundled into every page. That is one 210 KB (gzipped) chunk.
- Background effects: the WebGL background effects (a 140 KB gzipped chunk) load eagerly. They are used on the home and contact-form pages.
- Fonts: the Akrobat fonts (106 KB over the wire) are not preloaded.
- Rendering: 25 routes are rendered on demand because they never set the locale for static generation.
What I changed (in the development copy only)
- Logo: minified the logo, 378 KB down to 2 KB, with zero pixel difference at all 21 raster comparisons.
- Contact modal: it now loads on hover, focus or click. It opens with the same DOM and fields.
- WebGL effects: they now load after the page mounts.
- Fonts: preloaded the Regular and SemiBold weights. The font files themselves are unchanged.
- Static generation: set the locale on the routes that lacked it, so 24 of them are now static.
Results (localhost, so only relative numbers mean anything)
- Home page: 1095 KB to 616 KB transferred.
- Other measured pages: they show the same 45–55% drop in transfer.
- Layout shift: it drops to near zero on most pages.
- First paint and largest paint improve on most pages. For example, mobile toolshub24 largest paint goes from 3.4 s to 0.5 s.
Not improved or unresolved
- Blocking time is unchanged on pages with WebGL, because the WebGL rendering itself is the cost. I left it alone because changing it could alter the look.
- Desktop
/de and /en/contact-form largest paint got slightly worse (for example /de went from 1972 to 2428 ms). I did not re-run them, so I can't say whether that is noise or a real regression. - Request counts rose on some pages. Newly static pages are probably being prefetched, but I did not isolate that.
- The screenshot comparison shows no difference on static pages. Animated pages differ, but a base-versus-base control differs by a similar amount, so that is capture noise. The report recommends a human visual check of those pages on the private preview.
- Type check, lint and build pass on the optimized copy, and the patch applies cleanly to the mirror.
Left for an owner decision
- Fonts: converting the Akrobat files to WOFF2 would shrink them, but it makes a derivative of licensed files, so it needs the owner's approval.
- WebGL: reducing its cost, for example by pausing it off-screen, could change the look.
The patch and the minified logo are in work/perf502/. The measurement script, raw results and diff evidence are there too. The /tmp/perf502 build copies may vanish on reboot.
Files are in /home/iovon/ai-factory/workspaces/lit-website-audit/:
PERF_502.mdwork/perf502/perf502.patchwork/perf502/logo.min.svgwork/perf502/measure.jswork/perf502/results-base.jsonwork/perf502/results-after.json
Материалы