User Agents

Web browsers and everyday web tech, explained

How to Debug Site Performance with Chrome

· 5 min read · Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide shows you how to use Chrome's built-in DevTools to find and fix slow-loading pages. You'll learn to measure load time, identify heavy resources, and diagnose rendering issues—all without installing extra software. All you need is Chrome and the website you want to test.

What You'll Need

  • Google Chrome (latest version recommended)
  • The URL of the page you want to debug
  • Optional: a separate incognito window to avoid extensions interfering

Step-by-Step

  1. Open DevTools. Right-click anywhere on the page and select "Inspect," or press Ctrl+Shift+I (Windows/Linux) or Cmd+Option+I (Mac).
  2. Go to the Network panel. Click the "Network" tab at the top of DevTools. If you don't see it, click the double-arrow (» ) to reveal more tabs.
  3. Enable throttling and disable cache. In the Network panel, check the "Disable cache" box. Then, in the "Throttling" dropdown (usually at the top), select "Fast 3G" or "Slow 4G" to simulate a slower connection. This mimics real-world conditions.
  4. Record a fresh load. Reload the page (Ctrl+R or Cmd+R). The Network panel will list every request the page makes—HTML, CSS, JavaScript, images, fonts, etc.
  5. Look at the overview. At the bottom of the Network panel, you'll see a summary: number of requests, total transferred size, and total load time. Note the "DOMContentLoaded" and "Load" event times—these are key milestones.
  6. Sort by size or time. Click the "Size" column header to sort requests by response size, or the "Time" column to sort by duration. Large files (e.g., uncompressed images, heavy scripts) are often the biggest culprits.
  7. Identify slow requests. Click on any request to see its details: headers, preview, timing, and response. The "Timing" tab shows how long each phase took (queued, DNS, connection, request, response). Look for unusually long "Waiting (TTFB)" times—that indicates server-side slowness.
  8. Check resource types. Use the filter buttons at the top (All, XHR, JS, CSS, Img, Media, Font) to isolate categories. For example, click "Img" to see if any images are excessively large.
  9. Use the Performance panel for rendering issues. Click the "Performance" tab. Click the record button (circle), then reload the page. Stop recording after the page finishes loading. You'll see a timeline with CPU activity, network, and rendering frames.
  10. Analyze the performance summary. In the Performance panel, look for red bars or long tasks. Click on a red bar to see what function caused it. This helps identify JavaScript that blocks the main thread.
  11. Check for layout thrashing. In the Performance recording, look for purple "Rendering" events. If you see many forced reflows, that's layout thrashing—often caused by reading layout properties in a loop.
  12. Examine the Coverage panel. Click the "Coverage" tab (under the three-dot menu in DevTools). Click the record button, then reload. This shows which lines of CSS/JS are actually used. Unused code can be removed or deferred.
  13. Test with Lighthouse. Go to the "Lighthouse" tab (or "Audits" in older versions). Choose "Performance" (and optionally "Best Practices"), then click "Generate report." Lighthouse gives a score and specific suggestions, like "Properly size images" or "Eliminate render-blocking resources."
  14. Apply fixes and re-test. Based on your findings, make changes—compress images, minify CSS/JS, enable compression (gzip/brotli) on the server, or defer non-critical scripts. Then repeat the process to see if the metrics improve.

Common Mistakes

  • Testing with cache enabled. If you don't disable the cache, you'll get unrealistically fast load times on repeat visits, hiding the initial load problem.
  • Ignoring throttling. Testing on a fast local network can mask issues that real users on mobile networks experience.
  • Focusing only on total load time. Time to interactive (when the page becomes usable) is often more important than the load event. Check the Performance panel's "Time to Interactive" metric.
  • Overlooking third-party scripts. Ads, analytics, and social widgets can be huge performance drains. Look for requests to domains like google-analytics.com or doubleclick.net.
  • Not clearing the console. JavaScript errors can cause scripts to fail, but they don't always show up in the Network panel. Check the Console for errors.

Tips

  • Use incognito mode to avoid extensions that might slow the page or alter behavior.
  • Take screenshots of the Network panel before and after changes to compare.
  • Use the "Screenshots" checkbox in the Performance panel to see a visual timeline of what the page looked like during load.
  • For images, consider modern formats like WebP or AVIF—they're often smaller than JPEG/PNG.
  • If you're debugging a WordPress site, check if a caching plugin is installed; many performance issues are due to missing caching.

Troubleshooting

  • DevTools won't open. Try pressing F12 (Windows) or Cmd+Option+I (Mac). If it still doesn't work, restart Chrome.
  • Network panel is empty. Make sure you're on the Network tab and then reload the page. The panel only shows requests that occur after it's opened.
  • Throttling option is grayed out. In some Chrome versions, you need to disable the cache first. Also, if you're in incognito mode, ensure the setting is available.
  • Lighthouse report fails. This can happen if the page is behind a login or if there's a network issue. Try running it on a simpler page or check the console for errors.
  • Performance recording is too large. If the page takes too long to load, the recording might be huge. Try using "Fast 3G" throttling instead of "Slow 4G" to speed up the process.

Frequently Asked Questions

What's the difference between DOMContentLoaded and Load?

DOMContentLoaded fires when the HTML is fully parsed and the DOM is ready, but before stylesheets, images, and scripts finish loading. Load fires when all resources (including images) are fully loaded. DOMContentLoaded is often more relevant for interactive pages.

What is TTFB and why does it matter?

TTFB (Time to First Byte) is the time from the request until the browser receives the first byte of the response. A high TTFB (over 200ms on a fast connection) suggests server-side slowness, such as slow database queries or poor hosting.

How can I find out which script is causing a long task?

In the Performance panel, click on a red bar (long task) and look at the "Bottom-Up" or "Call Tree" tab. It will show the function names and the files they come from.

Why does my site load fast in Chrome but slow on mobile?

Mobile devices have slower CPUs and network connections. Use throttling to simulate a mid-range Android device. Also, check if your site is responsive—large images and heavy JavaScript affect mobile more.

What does "Disable cache" do exactly?

It tells Chrome not to use cached resources during the recording. This ensures you're measuring a full load, not a repeat visit where files are fetched from the local cache.

Is Lighthouse the same as DevTools?

Lighthouse is an open-source tool integrated into DevTools. It runs a series of audits and gives a score with actionable recommendations. It's a great starting point, but for deep debugging, the Network and Performance panels are more detailed.