In short.
WebPerf Loading is an AI-assistant skill for web developers diagnosing slow page loads, but its checks combine browser measurements with estimates and incomplete observations. Its strongest feature is the connection between a loading symptom, an appropriate snippet and a suggested follow-up investigation. Important limits include estimated JavaScript parsing costs, approximate font and image identification, restricted cross-origin data and inconsistent output bounds. Runtime reliability and actual performance improvements are not assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Scope is .claude/skills/webperf-loading at commit 2e83076b23faed5a7110f348e1ad9cccfa97acb5: SKILL.md, references/schema.md, references/snippets.md and all 35 JavaScript files, plus the supplied root LICENSE notice. The shared schema describes additional snippets from the wider collection; those descriptions do not make the additional implementations part of this skill. CLI and MCP implementations, referenced test suites, sibling skills and the rest of the repository are excluded. The unchanged captured skill files and licence notice are eligible for distribution under the supplied MIT terms. No code was executed; browser behavior, test outcomes, runtime compatibility and achieved performance gains are not assessed.
The overview
Identity
WebPerf Loading is the webperf-loading skill in Joan Leon's nucliweb/webperf-snippets repository. Its metadata identifies version 2.6.3 and Chrome DevTools MCP integration. The folder contains SKILL.md, two reference documents and 35 JavaScript snippets.
The original folder address is [https://github.com/nucliweb/webperf-snippets/tree/main/.claude/skills/webperf-loading]. The source version described here is commit 2e83076b23faed5a7110f348e1ad9cccfa97acb5. This is a skill an assistant loads, with executable browser snippets and investigation instructions.
Assessment
The resource is useful for turning a broad complaint such as slow initial loading into smaller questions about response time, blocking stylesheets, scripts, fonts or unnecessary downloads. Its workflows provide an investigation order, while structured results make individual findings available to an assistant without parsing console tables.
Treat it as a diagnostic starting point. For example, JS-Execution-Time-Breakdown derives parsing estimates from decoded script size rather than recording actual parsing or execution. Compression-Audit estimates potential savings using fixed reduction factors. These can help prioritize investigation, but they do not establish the speed improvement a change will deliver.
Who it fits
Frontend developers and performance specialists can use the skill to investigate individual pages and identify resources that deserve closer inspection. Developers working on server-rendered applications also get checks for recognizable hydration data, meaning the serialized information sent to make server-rendered HTML interactive.
Beginners get a prescribed sequence and explanations of metrics, but still need help connecting browser tooling and deciding whether a suggested change preserves application behavior. Experienced developers can inspect the scripts and JSON fields directly. The selected folder does not provide ongoing real-user monitoring, population-level statistics or historical reporting.
Capabilities
Loading diagnostics cover time to first byte, or TTFB, first contentful paint, or FCP, navigation phases, render-blocking resources, redirects, cache strategies, service workers, compression and server-provided timing information. TTFB concerns when the first response byte arrives; FCP concerns when the browser first paints content.
Script inspection covers loading strategies, inline code, first-party versus third-party resources, connection timings and third-party domain impact. CSS inspection covers inline size, a fixed critical-CSS budget, media queries, embedded content, imports and selector complexity. Font checks compare preloaded, loaded and apparently used faces. Image checks flag visible lazy-loaded images, conflicting loading attributes and offscreen images loaded eagerly.
Resource-hint checks inspect preload, preconnect, DNS prefetch, fetchpriority, future-resource prefetch and DOM-based speculation rules. Content-visibility inspection identifies existing usage and possible offscreen candidates. LCP measurement and interaction investigations are delegated to named sibling skills; those sibling implementations are outside this folder.
Using it
Requirements
The documented assistant workflow requires a host that can load the skill and call Chrome DevTools MCP against a browser page. Passing a local script through sourcePath with format set to script requires Chrome DevTools MCP 1.11.0 or later, according to SKILL.md. The file must be inside a workspace root the MCP server permits.
Browser API support varies by diagnostic. The render-blocking snippet explicitly requires renderBlockingStatus and reports a Chrome 107+ requirement. Service-worker and Server-Timing inspection also depend on APIs being available. Cross-origin timing and size details may require Timing-Allow-Origin on resource responses, while stylesheet access has separate CORS restrictions.
The documented alternative is the webperf-snippets CLI with Playwright and Chromium. A minimum Node.js version, a complete assistant-host compatibility list and verified dependency combinations are not established by the supplied material.
How it works
The assistant chooses a snippet using the workflows and decision trees. The snippet executes in the page, reads browser Performance entries, document elements, styles or other browser state, and returns a JSON object. The intended response format identifies the script and status, then supplies numeric values, units, ratings, details, items and issues where applicable.
Results distinguish successful observations, ongoing tracking, errors and unsupported APIs. Stable issue codes and resource targets are intended to support comparisons without depending on message wording. Several scripts also expose functions on window for subsequent inspection.
The implementation matters when interpreting a result. TTFB-Sub-Parts partitions browser navigation timestamps; its server-response phase is not a direct measurement of database or application internals. First-party classification uses a root-domain heuristic. Third-party main-thread attribution uses Long Animation Frames data, which does not account for every short script invocation.
Setup
Obtain the complete skill folder, preserving its scripts and references. The pinned folder is available at [https://github.com/nucliweb/webperf-snippets/tree/2e83076b23faed5a7110f348e1ad9cccfa97acb5/.claude/skills/webperf-loading]. For MCP file execution, supply the absolute script path through sourcePath and set format to script. Read the returned object rather than expecting console output.
If the installed skill lies outside the MCP server's permitted roots, SKILL.md documents either configuring a workspace for the real folder or reading the file and passing its code through function with format set to script. A symlink alone is documented as insufficient.
For the CLI route, the documented installation commands are npm install --save-dev webperf-snippets playwright and npx playwright install chromium. A single-snippet invocation is npx webperf-snippets <url> --snippet TTFB --json. These instructions are documented usage; their runtime compatibility has not been assessed here.
Some inspections make additional requests. Cache analysis sends HEAD requests for same-origin static resources, back-forward-cache inspection sends a HEAD request for the current page, and CSS analysis can fetch stylesheets. These requests can affect server logs and the conditions being measured.
Example use
For a page whose first visible content appears late, the documented complete audit starts with TTFB.js and FCP.js, followed by Find-render-blocking-resources.js, Critical-CSS-Detection.js, Script-Loading.js and Resource-Hints-Validation.js. This sequence separates initial response delay from resource and rendering questions.
If TTFB exceeds the workflow's 600 ms investigation trigger, the next step is TTFB-Sub-Parts.js. The workflow investigates TTFB above 600 ms, while TTFB.js rates values up to 800 ms as good; the reason for this difference is not documented. If blocking scripts are identified, the workflow adds loading-strategy and preload-conflict inspection. This is an illustrative investigation path, with no measured page result or demonstrated improvement.
Assessment & evidence
Limitations
The JavaScript execution breakdown does not measure actual execution. Its mobile parsing estimate is approximately one millisecond per decoded kilobyte, with a desktop estimate one-third as large. Compression savings similarly apply fixed factors of 70% for several text formats and 50% for supported font formats. Neither establishes device-specific cost or actual compressed output.
Several checks use approximations. Image-priority and visible lazy-loading checks choose the largest visible image as an LCP candidate rather than observing the actual LCP element. The above-the-fold font check matches filenames against font-family names. Critical-CSS-Detection counts inline style blocks and applies a 14 KB budget without establishing which declarations are necessary for the first viewport.
Coverage depends on what the scripts recognize and can read. The media-query analyzer matches traditional min-width expressions and examines top-level stylesheet rules, so nested queries or other syntax can escape that inspection. Hydration detection relies on fixed framework markers such as __NEXT_DATA__. The more detailed webfont analyzer scans at most 20,000 elements and warns that this can cause faces to appear unused.
Cross-origin restrictions can hide timings, sizes or CSS rules. Many snippets explicitly report partial analysis, but Critical-CSS-Detection does not return the shared schema's top-level corsLimitedAnalysis flag. An absent flag therefore does not universally establish complete data. A zero count or a good rating must also be interpreted alongside supported APIs and the page state.
The shared schema describes a maximum of 50 items and a 50 KB response, but some implementations return uncapped item arrays, including render-blocking-resource and content-visibility inspection. Automation should accommodate these differences. These are observations from the supplied code; runtime effects and failure rates are unknown.
Interpreting recommendations
The decision trees map observations to additional diagnostics and suggested fixes. They are explicit rules, not evidence that a recommendation will improve every application. Their thresholds serve different purposes: the TTFB workflow investigates above 600 ms, while TTFB.js rates values up to 800 ms as good.
Recommendations to change preload, async, defer, font loading or caching need application context. For example, the preload-conflict snippet accepts a low-priority mitigation that is more specific than the shorter reference example. Likewise, resource-hint validation uses observed requests as evidence of use; that does not independently prove a preload was consumed by its intended element. Confirm behavior and timing before making such recommendations automatic.
Alternative approaches
The documented CLI route provides the same snippet-result format without requiring Chrome DevTools MCP. It suits developers who prefer terminal output or an automated browser session. The CLI implementation itself is outside the supplied folder, so its reliability and feature parity are not independently established here.
The source also points to Chrome DevTools for deeper manual investigation. The Network panel can inspect cache headers that page JavaScript cannot read, and the Performance panel's CSS selector statistics can determine whether complex selectors actually cost time. Named sibling skills address Core Web Vitals and interaction analysis, but their implementations are not included. No comparative benchmark establishes which approach is faster or more accurate.
Source evidence
The available source consists of the complete selected skill folder and the repository's root MIT licence at commit 2e83076b23faed5a7110f348e1ad9cccfa97acb5. The JavaScript files support inspection of implemented calculations and browser interactions. The workflow and reference documents explain intended usage.
The schema contains illustrative JSON results and describes repository contract tests. Those examples are not site benchmarks, and no output from the referenced tests is supplied. No snippets, CLI commands or MCP sessions were executed. Actual compatibility, diagnostic accuracy, browser overhead and performance improvements remain unassessed.
Access & freshness
Costs
The supplied MIT licence grants use of the software without a licence charge. The skill does not specify a required paid model, API key or subscription.
Total operating cost is unknown. Any assistant-service charges, hosted browser or MCP charges, compute costs and setup time depend on the chosen environment. No usage bill, measured execution overhead or monetary savings are supplied. Compression byte-saving estimates are not financial savings.
Usage and redistribution rights
The repository's supplied LICENSE is MIT, with copyright attributed to Joan León in 2022. It permits use, copying, modification, publication, distribution, sublicensing and sale, subject to preserving the copyright and permission notices in copies or substantial portions. It provides the software without warranty.
SKILL.md also declares MIT. Redistribution of the captured skill files should retain the supplied root LICENSE and existing source notices. Separate dependency licences and assistant-service terms are not established by these files. The licence text is available at [https://raw.githubusercontent.com/nucliweb/webperf-snippets/2e83076b23faed5a7110f348e1ad9cccfa97acb5/LICENSE].
Version and freshness
The supplied snapshot was captured on 16 November 2026 at 03:33:15 UTC and identifies skill version 2.6.3 at commit 2e83076b23faed5a7110f348e1ad9cccfa97acb5. The capture timestamp does not establish the author's release date.
Later repository changes, the current release and compatibility with later browser, MCP or CLI versions are unknown. Use the pinned revision when comparing these descriptions with the source.
Practical next steps
Start with the loading workflow that matches the symptom and inspect status, API-support flags and missing-data counts before acting on ratings. For script-heavy pages, combine loading-strategy inspection with first-party and third-party timings. Treat byte totals as lower bounds whenever data is hidden.
Confirm the actual LCP element before applying image-priority advice. Inspect visible and offscreen image findings in their intended page state, and check that loading changes preserve script order and interactions. For back-forward cache, perform a real back or forward navigation and inspect browser-reported reasons; no-blockers-detected alone does not demonstrate a successful restoration.
Before integrating the JSON into automation, handle snippet-specific fields and output sizes. Retain full resource URLs, issue codes and targets where available so similarly named files are not confused. Any claimed speed improvement needs subsequent measurements under comparable browser and page conditions.
