← All articles

Web platform

A browser DevTools workflow

Diagnose layout, resource and JavaScript issues.

On this page

  1. Inspect the element
  2. Inspect the network
  3. Inspect runtime errors

Inspect the element

Use the Elements panel to view computed styles and the box model. Temporarily change a rule to test your hypothesis.

Inspect the network

Reload with the Network panel open. Examine status codes, response headers, cache behavior and timing.

Inspect runtime errors

Read the Console and follow stack traces to the source. Fix the earliest relevant error before investigating dependent failures.

Example

console.table(performance.getEntriesByType("resource")
  .map(r => ({name: r.name, ms: Math.round(r.duration)})));

Related reading