What's New In DevTools (Chrome 74)

Published on

Welcome back! Here's what's new.

Video version of this page #

Highlight all nodes affected by CSS property #

Hover over a CSS property that affects a node's box model, such as padding or margin, to highlight all nodes affected by that declaration.

Hovering over a margin property highlights all nodes affected by that declaration

Figure 1. Hovering over a margin property highlights the margins of all nodes affected by that declaration

Lighthouse v4 in the Audits panel #

The new Tap targets are not sized appropriately audit checks that interactive elements like buttons and links are appropriately large and spaced apart on mobile devices.

The PWA category of a report now uses a badge scoring system.

The new badge scoring system for the PWA category

Figure 3. The new badge scoring system for the PWA category

What's Lighthouse? Lighthouse is the auditing engine that powers the Audits panel. It also powers web.dev/measure and PageSpeed Insights. You can also run Lighthouse as a Node module, a Chrome Extension, or from the command line. See Run Lighthouse in Chrome DevTools to get started.

WebSocket binary message viewer #

To view the contents of a binary WebSocket message:

  1. Open the Network panel. See Inspect Network Activity to learn the basics of analyzing network activity.

    The Network panel

    Figure 4. The Network panel

  2. Click WS to filter out all resources that aren't WebSocket connections.

    After clicking WS only WebSockety connections are shown

    Figure 5. After clicking WS only WebSockety connections are shown

  3. Click the Name of a WebSocket connection to inspect it.

    Inspecting a WebSocket connection

    Figure 6. Inspecting a WebSocket connection

  4. Click the Messages tab.

    The Messages tab

    Figure 7. The Messages tab

  5. Click one of the Binary Message entries to inspect it.

    Inspecting a binary message

    Figure 8. Inspecting a binary message

Use the dropdown menu at the bottom of the viewer to convert the message into Base64 or UTF-8. Click Copy to clipboard Copy to clipboard to copy the binary message to your clipboard.

Viewing a binary message as Base64

Figure 9. Viewing a binary message as Base64

Capture area screenshot in the Command Menu #

Area screenshots let you capture a screenshot of a portion of the viewport. This feature has been around for a while, but the workflow for accessing it was quite hidden. Area screenshots are now available from the Command Menu.

  1. Focus DevTools and then press Control+Shift+P or Command+Shift+P (Mac) to open the Command Menu.

    The Command Menu

    Figure 10. The Command Menu

  2. Start typing area, select Capture area screenshots, then press Enter.

  3. Drag your mouse over the section of the viewport that you want to screenshot.

    Selecting the portion of viewport to screenshot

    Figure 11. Selecting the portion of viewport to screenshot

Service worker filters in the Network panel #

Type is:service-worker-initiated or is:service-worker-intercepted in the Network panel filter text box to view requests that were caused (initiated) or potentially modified (intercepted) by a service worker.

Filtering by is:service-worker-initiated

Figure 12. Filtering by is:service-worker-initiated

Filtering by is:service-worker-intercepted

Figure 13. Filtering by is:service-worker-intercepted

See Filter resources for more on filtering network logs.

Performance panel updates #

Performance recordings now mark up long tasks and First Paint.

Check out Do less main thread work for an example of using the Performance panel to analyze page load performance.

Long tasks in Performance recordings #

Performance recordings now show long tasks.

Hovering over a long task in a Performance recording

Figure 14. Hovering over a long task in a Performance recording

First Paint in the Timings section #

The Timings section of a Performance recording now marks First Paint.

First Paint in the Timings section

Figure 15. First Paint in the Timings section

New DOM tutorial #

Check out Get Started With Viewing And Changing The DOM for a hands-on tour of DOM-related features.

Last updated: Improve article

We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.