Image Optimization
Always use the `next/image` component to automatically serve optimized images.
Dynamic Imports
Load components only when they are needed.
tsx
import dynamic from 'next/dynamic';
const HeavyComponent = dynamic(() => import('./HeavyComponent'), {
loading: () => <p>Loading...</p>,
});
Route Handlers
Use Route Handlers for backend logic.
"Performance is not just a metric, it's a user experience feature."
