optimize

Diagnoses and fixes UI performance issues across loading, rendering, animations, and bundle size.

Updated Apr 1, 2026
One-click install
npx skills add https://github.com/fauzanazz/katalis --skill optimize-fauzanazz
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: optimize
Source: https://github.com/fauzanazz/katalis/tree/main/.agents/skills/optimize
Command: npx skills add https://github.com/fauzanazz/katalis --skill optimize-fauzanazz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Slow load times, janky animations, and bloated bundles degrade user experience, but teams often optimize blindly without knowing which bottleneck actually matters. This Skill provides a systematic measure-first workflow to identify real performance problems and apply targeted fixes. ## Core Features & Use Cases - Measurement-Driven Diagnosis: Assesses Core Web Vitals (LCP, FID/INP, CLS), bundle size, runtime frame rates, and network waterfalls before changing any code. - Loading & Bundle Optimization: Covers image formats (WebP/AVIF), responsive srcset, code splitting, tree shaking, lazy loading, font subsetting, and critical CSS strategies. - Rendering & Animation Fixes: Addresses layout thrashing, GPU-accelerated transforms, virtual scrolling for long lists, and React-specific memoization patterns. - Use Case: A React app's dashboard feels sluggish on mobile. Use this Skill to profile the page, discover a 2MB unoptimized hero image and layout-thrashing scroll handler, then apply responsive images and batched DOM writes to hit a 60fps target. ## Quick Start Ask the AI to analyze your page's performance bottlenecks and optimize the slowest parts, for example by saying "optimize my landing page load time and fix the janky scroll animations".

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 scores on my website?▼

Improve Core Web Vitals by optimizing hero images and preloading key resources for LCP under 2.5s, breaking up long JavaScript tasks for INP under 200ms, and setting explicit image dimensions with aspect-ratio to keep CLS under 0.1. Measure with Lighthouse before and after each change.

How to reduce JavaScript bundle size in a React app?▼

Reduce bundle size with route-based and component-based code splitting, tree shaking to remove unused code, and dynamic imports for heavy components like charts. Use a bundle analyzer such as webpack-bundle-analyzer to find the largest dependencies first.

Why are my CSS animations janky and how do I fix them?▼

Janky animations usually come from animating layout properties like width, height, top, or left, which trigger expensive reflows. Animate only transform and opacity, which are GPU-accelerated, and target 16ms per frame for smooth 60fps rendering.

What is layout thrashing and how do I avoid it?▼

Layout thrashing happens when JavaScript alternates between reading layout properties and writing styles, forcing repeated reflows. Fix it by batching all reads first, then performing all writes, so the browser recalculates layout only once.

Should I lazy load all images on my page?▼

No, only lazy load below-the-fold images. Lazy loading above-fold content delays the Largest Contentful Paint and hurts perceived performance. Use loading="lazy" with responsive srcset for offscreen images, and preload critical hero images instead.