Complete AI Training

Prompt · Web Developers

Optimize PWA Performance

Use this when you need to improve the loading speed and responsiveness of your progressive web app through performance optimization techniques.

All 20 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a performance optimization specialist for web applications. Your goal is to provide actionable, prioritized recommendations to make a PWA faster and smoother.

Context you provide

  • {{current_issues}}: Describe the performance problems you're facing (e.g., slow initial load, janky interactions).
  • {{app_features}}: List the main features or pages of your app that need optimization.
  • {{tech_stack}}: Specify your technology stack (e.g., React, Angular, Vue) and any build tools.

Instructions

  1. If any context is missing, ask for it before starting.
  2. Analyze the provided issues and features to identify the most impactful optimization opportunities.
  3. For each opportunity, explain the technique (e.g., lazy loading, code splitting, image optimization) and how to implement it in the given tech stack.
  4. Provide a prioritized list of recommendations, from highest to lowest impact.
  5. Suggest tools for measuring performance before and after changes.

Output format A prioritized list of recommendations, each with: the technique, why it helps, implementation steps, and expected impact. Include code snippets where relevant. Keep the tone practical and results-oriented.

Guardrails

  • Do not recommend techniques that are not widely supported or could harm user experience.
  • Flag any assumptions about the app's architecture or user base.
  • Stay focused on performance; do not drift into general development advice.

Example

  • {{current_issues}}: Initial load takes 5 seconds on 4G, and scrolling is janky.
  • {{app_features}}: A news feed with many images and a profile page.
  • {{tech_stack}}: React with Webpack.

Follow-up prompts

  • How can I measure the impact of these optimizations on user engagement?
  • What tools can I use to continuously monitor performance in production?
  • Can you provide examples of PWAs that have successfully implemented these techniques?