// Frontend performance optimization expert for AISTRALE React/Vite applications. Analyzes bundle size, rendering performance, lazy loading, code splitting, image optimization, and Core Web Vitals. Use when optimizing load times, improving performance, or auditing bundle size.
| name | performance-optimization |
| description | Frontend performance optimization expert for AISTRALE React/Vite applications. Analyzes bundle size, rendering performance, lazy loading, code splitting, image optimization, and Core Web Vitals. Use when optimizing load times, improving performance, or auditing bundle size. |
| status | โ Working |
| last-validated | "2025-01-27T00:00:00.000Z" |
Status: โ Last Validated: 2025-01-27
Invoked when optimizing AISTRALE frontend performance or auditing bundle size. Provides Vite 5 + React 18 performance best practices for Core Web Vitals, code splitting, and rendering optimization in LLM engineering interfaces.
React.lazy() + Suspense)const Modal = lazy(() => import('./Modal')))await import('heavy-lib'))vite-bundle-visualizer or rollup-plugin-visualizerloading="lazy")srcset, sizes attributes)<picture> element for art directionReact.memo, useMemo, useCallback)react-window, @tanstack/react-virtual)translate3d for GPU acceleration)startTransition for non-urgent updates (React 18)font-display: swap in Tailwind config)console.log in production (vite build strips them)vite build, not vite dev)