agentsclimarketplace

Web performance mobile

Skill omaression/company-profile-plugin/skills/web-performance-mobile

Use when improving mobile load performance (Core Web Vitals FCP/LCP) of a content site - cutting critical font bytes, subsetting fonts, untying LCP from entrance animations, eliminating redirect hops, and avoiding misleading headless-Lighthouse metrics.From its SKILL.md

Install
npx -y skills add omaression/company-profile-plugin --skill web-performance-mobile

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.3 KB, as published. Nobody here has run it

Web performance (mobile Core Web Vitals)

Overview

On a small content site the mobile bottleneck is almost never JS execution; it is bytes-before-first-paint and redirect hops, with the occasional self-inflicted LCP delay from an entrance animation. Diagnose with real-browser measurement (the headless tools lie), then cut the critical path.

Measure in a real browser, not headless Lighthouse

The single biggest time-sink: headless Lighthouse (and the Claude preview headless browser) report fake metrics. In the build, headless Lighthouse reported a ~4s LCP "render delay" bound to the top-left logo element, invariant across locales and to every font fix. Real Chrome + Playwright showed ~1.2s. The preview headless browser also does not fire IntersectionObserver and misreports getComputedStyle. Rules:

  • Measure FCP/LCP with Playwright + performance.getEntriesByType('paint') on a representative environment, or trust the platform's field/Speed-Insights data.
  • Trust screenshots over headless getComputedStyle/IntersectionObserver.
  • Do not chase a headless LCP number; confirm the real one on the deployed site.

Cut critical font bytes (usually the biggest win)

Fonts dominated the pre-render payload (in the build: 133KB of fonts = ~80% of the critical bytes, and the Latin subsets were the bulk). Fixes:

  • Ship each non-Latin face's own script subset only (subsets: ['arabic']); let embedded Latin/digits fall through to the Latin body face via the CSS stacks. This alone cut ~38% of critical font bytes and dropped preloads from 6 to 4. See bilingual-arabic-rtl.
  • Trim weights to the ones actually used.
  • display: 'swap' so text paints immediately in the fallback.

Kill redirect hops on the entry URL

A bare-domain / -> /ar 307 was an uncacheable redirect costing ~250-800ms on every first hit. Serving the default locale unprefixed at / (localePrefix: 'as-needed' + localeDetection: false) makes / a cacheable 200. See bilingual-arabic-rtl. Always check whether your entry URL redirects.

Untie LCP from entrance animations

If the LCP element is inside a staggered entrance animation, it sits at opacity: 0 through the animation delay and LCP waits for it. The build's mobile LCP element (a hero subtitle) was held by a 180ms inline animation-delay. Fix: disable the stagger on small screens so the LCP element paints immediately:

@media (max-width: 639px) { .hero-item { animation-delay: 0ms !important; } }

Desktop keeps the stagger. Never let a decorative animation gate the LCP element.

Diagnosis shortcut

When LCP ~= FCP, nothing is loading late - first render itself is late, so look at the critical bytes and redirect chain, not at lazy resources. When LCP

FCP, a specific element (often a font-swapped heading or an animated block) is the late one; find and unblock it.

Verify

On the deployed site, real-browser FCP/LCP under a throttled 4G profile; confirm the entry URL is a 200 (not a redirect), the expected number of font files preload, and CLS stays 0.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.