One-click install
npx skills add https://github.com/quanngynx/GDGO-2026.Servexa-Warranty-AI --skill preload-quanngynx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: preload
Source: https://github.com/quanngynx/GDGO-2026.Servexa-Warranty-AI/tree/main/servexa-warranty-ai/.agents/skills/preload
Command: npx skills add https://github.com/quanngynx/GDGO-2026.Servexa-Warranty-AI --skill preload-quanngynx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you reduce perceived and measured page-load delays by ensuring critical assets (often discovered late) begin downloading earlier, improving user experience and Core Web Vitals.

Core Features & Use Cases

  • Targets late-discovered critical assets: Use browser <link rel="preload"> for resources like fonts, hero images, and important scripts that would otherwise enter the loading waterfall too late.
  • Prevents common preload pitfalls: Avoid wasting bandwidth and triggering browser warnings by preloading only what must be visible within roughly the first second.
  • Improves performance metrics: Focuses on benefits to Time To Interactive (TTI), First Input Delay (FID), First Contentful Paint (FCP), and Largest Contentful Paint (LCP) through careful prioritization.
  • Ensures correct fetch semantics: Uses crossorigin for font/CORS resources so the preload can be reused by the eventual @font-face request.

Quick Start

Use the preload skill to generate the correct <link rel="preload"> tags for your critical scripts or fonts once you identify which assets are needed immediately after initial render.

Frequently Asked Questions about preload

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use HTML preload to make fonts and JavaScript load instantly?

HTML preload uses <link rel="preload"> to fetch critical fonts and JavaScript bundles early. Specify the resource type via the as attribute and use crossorigin for fonts to ensure the browser reuses the preloaded asset.

Why does preloading web fonts cause duplicate download requests?

Preloading web fonts without the crossorigin attribute causes duplicate downloads because the preload request and the eventual @font-face request use different fetch modes. Adding crossorigin matches the CORS fetch mode to prevent this issue.

What is the best way to improve Core Web Vitals for late-discovered resources?

Preloading late-discovered resources is the best way to improve Core Web Vitals like LCP and FID. It instructs the browser to fetch critical assets early, reducing perceived load delays and boosting interactivity metrics.

When should I not use preload for loading optimization?

You should not use preload for assets not needed within the first second of page load. Over-preloading wastes bandwidth and triggers browser warnings, so limit preloads to critical fonts, hero images, or scripts required immediately.

Does preloading JavaScript bundles improve Time To Interactive?

Preloading JavaScript bundles does improve Time To Interactive by starting the download early. This ensures important scripts enter the loading waterfall sooner rather than being discovered late, accelerating page interactivity.

What attributes do I need for preloading critical images and scripts?

You need the as attribute to specify the correct resource type and the crossorigin attribute for CORS resources like fonts. Correct fetch semantics ensure the browser prioritizes and properly reuses the preloaded assets.