What's New In DevTools (Chrome 74)
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
margin, to highlight 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.
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:
Open the Network panel. See Inspect Network Activity to learn the basics of analyzing network activity.
Figure 4. The Network panel
Click WS to filter out all resources that aren't WebSocket connections.
Figure 5. After clicking WS only WebSockety connections are shown
Click the Name of a WebSocket connection to inspect it.
Figure 6. Inspecting a WebSocket connection
Click the Messages tab.
Figure 7. The Messages tab
Click one of the Binary Message entries to inspect it.
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 to copy the binary message to your clipboard.
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.
Focus DevTools and then press Control+Shift+P or Command+Shift+P (Mac) to open the Command Menu.
Figure 10. The Command Menu
area, select Capture area screenshots, then press Enter.
Drag your mouse over the section of the viewport that you want to screenshot.
Figure 11. Selecting the portion of viewport to screenshot
Service worker filters in the Network panel #
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.
Figure 12. Filtering by
Figure 13. Filtering by
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.
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.
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.