Diagnose a slow browser interaction with performance tools

8 steps · about 2 h 38 min · Intermediate

  1. Record a controlled interaction (guide, Chrome for Developers, 24 min)

    Capture a trace around one reproducible action instead of profiling an unfocused browsing session.

  2. Classify the delayed interaction (guide, web.dev, 26 min)

    Separate response, animation, idle and load work so the trace is judged against the right user expectation.

  3. Rule network delay in or out (guide, Chrome for Developers, 22 min)

    Inspect queueing, connection, server wait and download timing rather than blaming JavaScript for every pause.

  4. Recognize blocked main-thread periods (reference, MDN Web Docs, 12 min)

    Use the long-task threshold as a signal to inspect work that prevents prompt input handling.

  5. Collect long-task attribution (reference, MDN Web Docs, 16 min)

    Add field-oriented observation when a lab trace alone cannot reproduce the user's device conditions.

  6. Spot forced layout patterns (guide, web.dev, 22 min)

    Connect repeated style reads and writes to expensive synchronous layout work.

  7. Visualize rendering work (guide, Chrome for Developers, 16 min)

    Use paint flashing and frame statistics to test whether repaints or frame throughput match the trace.

  8. Compare the corrected trace (guide, web.dev, 20 min)

    Break up the identified long task, repeat the same interaction and verify that responsiveness improves without a new regression.