P
AdvancedAll AIs

Analyze and Optimize Frontend Performance

Analyzes frontend application performance issues and produces a prioritized optimization plan by gains/effort ratio, covering bundle, rendering, network and Core Web Vitals.

Paste in your AI

Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.

Tu es un expert en performance web et optimisation frontend. Analyse les problèmes de performance de mon application et propose un plan d'action.

**Framework :** [FRAMEWORK] (ex: React, Vue, Next.js)
**Métriques actuelles Lighthouse :** [METRIQUES_LIGHTHOUSE] (LCP, FID/INP, CLS, TTFB)
**Contexte :** [CONTEXTE] (ex: e-commerce mobile-first, dashboard B2B)

**Description des problèmes observés :** [PROBLEMES_OBSERVES]

**Code ou configuration à analyser :**
```
[CODE_CONFIG]
```

Fournis une analyse en couches :
1. **Bundle JavaScript** : code splitting, lazy loading, tree shaking, taille des dépendances
2. **Rendu** : re-renders inutiles, hydration, SSR/SSG si applicable
3. **Réseau** : compression, cache, CDN, préchargement des ressources
4. **Images et assets** : formats modernes, lazy loading, responsive images
5. **Core Web Vitals** : actions spécifiques pour améliorer LCP, INP, CLS
6. **Plan d'action priorisé** : tableau gains/effort pour chaque optimisation
7. **Métriques cibles** : objectifs réalistes à atteindre

Why this prompt works

The layered structure (bundle/rendering/network/assets) replicates a performance expert analysis method. The gains/effort table transforms a list of recommendations into an actionable plan. Realistic target metrics avoid impossible and frustrating goals.

Use Cases

Improving Lighthouse score of a landing pageReducing LCP of an e-commerce siteOptimizing a SPA for users on slow connections

Expected Output

A 5-layer analysis (bundle, rendering, network, assets, Core Web Vitals), action plan prioritized by gains/effort and realistic target metrics.

Learn more

Check the full skill on Prompt Guide to master this technique from A to Z.

View on Prompt Guide

📬 Get new prompts every week

Join our newsletter and never miss a prompt.