optimize

Identify and fix UI performance bottlenecks across loading, rendering, animations, images, and bundle size.

Updated Feb 28, 2026
One-click install
npx skills add https://github.com/raphaelmans/agent-skills --skill optimize-raphaelmans
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: optimize
Source: https://github.com/raphaelmans/agent-skills/tree/main/optimize
Command: npx skills add https://github.com/raphaelmans/agent-skills --skill optimize-raphaelmans

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Improve interface performance by identifying and fixing bottlenecks across loading speed, rendering, animations, images, and bundle size, resulting in faster, smoother user experiences.

Core Features & Use Cases

  • Loading optimization: reduce load times, optimize images and fonts, and implement code-splitting.
  • Rendering and animation: reduce layout thrashing, optimize CSS containment, GPU-accelerated animations, and avoid expensive reflows.
  • Network and bundle: minimize JS payload, lazy-load non-critical code, and use caching strategies.

Quick Start

Analyze the current performance, identify bottlenecks, and implement the recommended optimizations to improve perceived speed.

Frequently Asked Questions about optimize

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

FAQPage Schema
How do I improve Core Web Vitals for a web interface?

Improve Core Web Vitals by identifying UI bottlenecks across loading, rendering, and bundle size. Analyze current performance, minimize JavaScript payloads, optimize images, and implement code-splitting to achieve faster, smoother user experiences.

What's the best way to reduce bundle size in an SPA?

Reduce bundle size in an SPA by minimizing JavaScript payloads, code-splitting critical paths, and lazy-loading non-critical code. These network and bundle optimizations reduce load times and improve overall web performance.

Why does my web UI layout thrash during animations?

Layout thrash happens when animations trigger expensive reflows. Fix rendering bottlenecks by optimizing CSS containment, using GPU-accelerated animations, and avoiding forced synchronous layouts to smooth user interactions.

Can I use code-splitting and lazy-loading to optimize loading speed?

Yes, code-splitting and lazy-loading non-critical code are primary loading optimization strategies. Combined with image and font optimization plus caching strategies, they significantly reduce initial load times and improve perceived speed.

How do I measure and fix rendering bottlenecks in a web application?

Measure and fix rendering bottlenecks by analyzing UI performance to locate expensive reflows and layout thrashing. Apply CSS containment and GPU-accelerated animations to reduce rendering bottlenecks and smooth user interactions.

Does UI optimization work for both initial loading and runtime rendering?

Yes, UI optimization targets both initial loading and runtime rendering. It reduces load times through asset and bundle optimization while smoothing runtime rendering by minimizing layout thrashing and leveraging GPU-accelerated animations.