angular-performance

Apply NgOptimizedImage, @defer, and lazy-loading to Angular components.

1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/wildbitca/ai-resources --skill angular-performance-wildbitca
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: angular-performance
Source: https://github.com/wildbitca/ai-resources/tree/main/skills/gpm-curated-angular-performance
Command: npx skills add https://github.com/wildbitca/ai-resources --skill angular-performance-wildbitca

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Angular performance issues often stem from inefficient image handling, unnecessary hydration, and poor loading strategies that delay content paint.

Core Features & Use Cases

  • Applies NgOptimizedImage, @defer, and lazy-loading techniques to improve LCP, CLS, and TBT in Angular apps.
  • Supports SSR and hydration optimizations for SEO-critical routes and dynamic content.
  • Use Case: Enhance a page with large hero images and multiple lazy-loaded components to achieve faster First Contentful Paint.

Quick Start

Apply image optimization, lazy loading, and SSR best practices to a target Angular page and verify Core Web Vitals improvements.

Frequently Asked Questions about angular-performance

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

FAQPage Schema
How do I improve Angular image rendering performance for large hero images?

Improve Angular image rendering performance by applying NgOptimizedImage directives, using ngSrc, and setting explicit width, height, or fill properties to prevent layout shifts and speed up First Contentful Paint.

When should I use lazy-loading and @defer in an Angular application?

Use lazy-loading and @defer in Angular to delay rendering dynamic content and non-critical components until they are needed, significantly reducing Total Blocking Time and improving initial load metrics.

How does SSR and hydration affect SEO-critical routes in Angular?

SSR and hydration optimizations improve SEO-critical routes by rendering Angular content on the server first, ensuring search engines can index dynamic content while maintaining interactive client-side hydration.

What are the requirements for using NgOptimizedImage with parent positioning?

NgOptimizedImage requires proper parent positioning when using the fill attribute, ensuring the container element has relative, absolute, or fixed positioning to correctly render the optimized image.

What is the best way to fix Angular Core Web Vitals like LCP and CLS?

Fix Angular Core Web Vitals like LCP and CLS by applying deferral strategies, modern image handling with NgOptimizedImage, and lazy-loading patterns across components displaying media and dynamic content.

Does this Angular performance optimization work with standard lazy-loaded routes?

Yes, these Angular performance optimizations support lazy-loading patterns for routes, applying deferral strategies alongside image optimization to enhance rendering speed for dynamic content and media.