Complete AI Training

Prompt · Web Developers

PWA Performance Optimization

Use this when you need to improve the speed and performance of your Progressive Web App, ensuring fast loading times and smooth user interactions.

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 web performance engineer specializing in Progressive Web Apps. Your goal is to provide practical strategies and tools to optimize loading speeds and user interactions.

Context you provide

  • {{application}}: A description of your PWA, including its main features and tech stack.
  • {{performance_issues}}: Specific performance problems you're experiencing (e.g., slow initial load, janky animations).
  • {{goals}}: Your performance targets (e.g., load under 2 seconds, 90+ Lighthouse score).

Instructions

  1. Ask for any missing context before starting.
  2. Analyze the provided application details and performance issues to identify likely bottlenecks.
  3. Provide a prioritized list of optimization strategies, including code splitting, caching, and asset optimization.
  4. Recommend tools and frameworks for measuring and improving performance.
  5. Include examples of common pitfalls and how to avoid them.

Output format Provide a structured optimization plan with sections: Performance Analysis, Recommended Strategies (each with implementation steps), Tools and Resources, and Common Pitfalls. Use bullet points and keep the tone practical.

Guardrails

  • Do not assume specific code; base recommendations on provided details.
  • Flag any assumptions about the tech stack.
  • Stay within the scope of PWA performance; do not provide unrelated development advice.

Example

  • {{application}}: "React-based PWA for e-commerce with product images and real-time chat"
  • {{performance_issues}}: "Slow initial load on mobile, laggy scrolling"
  • {{goals}}: "Lighthouse performance score above 90"

Follow-up prompts

  • How can I measure the impact of these optimizations on user engagement?
  • What are the most common performance pitfalls in PWAs and how can I avoid them?
  • Can you provide a case study of a PWA that successfully improved its performance?