Performance
Loading speed, Core Web Vitals, query efficiency, scripts, assets and frontend optimisation.
Why your project feels slow, and the specific changes that fix it.

Guides in Performance
Prompts for this topic
Answered questions in Performance
16 short, plain-English answers filed under this topic.
Why is my Lovable website slow?
Slowness is usually caused by large unoptimised images, too much data fetched at once, or heavy client-side rendering — profile it with Lighthouse/DevTools before asking Lovable to fix anything.
How do I speed up a Lovable website?
Compress and lazy-load images, fetch only the data each page needs, remove unused dependencies, and ask Lovable to run a performance/codebase audit to find the highest-impact fixes.
Why does my Lovable app get slower as I add features?
Each new feature can add its own data fetches, dependencies, and re-renders that compound over time — without periodic clean-up, an app accumulates weight even if each individual change seems small.
How do I improve Lighthouse scores?
Run Lighthouse to find your worst-scoring category, fix the top 2-3 flagged issues (usually images, unused JavaScript, or render-blocking resources), and re-run it to confirm before moving on.
How do I improve Core Web Vitals?
Focus on the three metrics Google measures — LCP (loading), INP (interactivity), and CLS (visual stability) — and fix the specific one flagged as poor, usually starting with images for LCP.
How do I improve LCP?
Largest Contentful Paint is almost always slowed by an oversized hero image or a render-blocking resource — compress/preload the largest above-the-fold element and defer everything not needed for first paint.
Why are images loading slowly?
Images usually load slowly because they're uploaded at full camera/design resolution, in an uncompressed format, and without lazy-loading or a CDN — the fix is compression, correct sizing, and modern formats.
How do I optimise images?
Resize images to their actual display size, compress them, convert to WebP/AVIF where practical, and lazy-load anything below the fold — ask Lovable to apply this across the project, not just one page.
How do I lazy-load images?
Ask Lovable to add native lazy-loading to images below the fold while keeping the hero/first-visible image loading eagerly, so visitors aren't downloading offscreen images before they're needed.
Why is my database making so many requests?
Usually a component is re-fetching data on every render, a page is running the same query multiple times, or you're fetching entire tables instead of what's actually needed — ask Lovable to audit data-fetching patterns.
How do I reduce unnecessary database calls?
Fetch only what a page needs, cache results, batch requests, and let Postgres do filtering instead of pulling whole tables into the client.
Why is my dashboard slow?
Dashboards are usually slow because they run several unoptimised queries at once, re-render on every state change, or load large charts and images without lazy loading.
Why does my app become slow with more users?
Slowdowns under load usually mean missing database indexes, no rate limiting, or queries that scale linearly with row count instead of being paginated.
How do I find unnecessary React renders?
Use React DevTools' Profiler and the 'Highlight updates' setting to see which components re-render too often, then fix unstable props, missing memoisation, or state stored too high in the tree.
How do I remove unused code?
Ask Lovable to search for unused components, imports and dependencies, or run a tool like ts-prune/depcheck via the terminal, then remove what's confirmed unused and re-test.
How do I audit a Lovable project's performance?
Combine a browser Network/Performance trace, a React DevTools profile, and a query review of your Supabase schema — then ask Lovable to fix the specific issues found rather than 'optimise everything'.
Useful external references
- Web Vitals Reference
web.dev · Google reference on LCP, CLS and INP — what each measures and what actually improves them.