国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Table of Contents
Lighthouse
Better "check elements"
Simulated vision defects
Get performance timing
Monitor performance
CSS Overview and Local Overview
So, what about DevTools in other browsers?
in conclusion
Home Web Front-end CSS Tutorial A Look at What's New in Chrome DevTools in 2020

A Look at What's New in Chrome DevTools in 2020

Apr 03, 2025 am 10:57 AM

A look at the new features of Chrome DevTools in 2020

A Look at What's New in Chrome DevTools in 2020

This article will take you to quickly learn about some of the new features of Chrome DevTools. We'll briefly introduce it, then dive into many new DevTools features and learn about progress in other browsers. I keep focusing on these aspects because I created Dev Tips, the largest collection of DevTools prompts you can find online!

It is crucial to understand the changes in DevTools as it continues to evolve, with new features designed to help us improve our development and debug experience.

Let's take a look at the latest and best features. While the publicly stable version of Chrome has most of these features, I'm using Chrome Canary because I like to be at the forefront of technology.

Lighthouse

Lighthouse is an open source tool for auditing web pages, usually around performance, SEO, accessibility, and more. Lighthouse has been bundled together as part of DevTools for some time, meaning you can find it in a panel called…Lighthouse!

I really like Lighthouse because it is one of the easiest parts of DevTools to use. Click "Generate Report" and you will immediately get human-readable comments for the web page, such as:

Documents use easy-to-read font size, 100% easy-to-read text

or:

Avoid excessively large DOM sizes (1,189 elements)

Almost every review is linked to the developer documentation explaining why the review failed and how it can be improved.

The best way to get started with Lighthouse is to run the audit on your own website:

  1. Open DevTools and navigate to the Lighthouse panel when you visit one of the sites
  2. Select the project you want to review ( best practices are a good starting point)
  3. Click to generate a report
  4. Click on any approved/failed review to investigate the results

Although Lighthouse has been part of DevTools for some time (since 2017!), it is still worth mentioning as it continues to offer user-facing features such as:

  • Check if the anchor element resolves to its URL audit (interesting fact: I'm involved in this work!)
  • Check if the maximum content drawing metric is fast enough for review
  • Warn you about auditing that is not using JavaScript

Better "check elements"

This is a nuanced, very small feature in some ways, but it can have a profound impact on how we handle web accessibility.

It works as follows. When you use Check Elements, arguably the most common use of DevTools, you now get tooltips that contain additional information about accessibility.

The reason I say this has a profound impact is that DevTools has accessibility for a while, but how many of us actually use them? Including this information in a commonly used feature like Check Element will give it a higher visibility and make it more accessible.

Tool tips include:

  • The contrast ratio of text (how much contrast is the foreground text with background color, or how bad is it)
  • Text representation
  • ARIA Roles
  • Whether the inspected element can be focused on the keyboard

To try this feature, right-click (or Cmd Shift C) element and select Check to view it in DevTools.

I made a 14-minute video about accessibility debugging with Chrome DevTools, which covers some of them in more detail.

Simulated vision defects

As the name implies, you can use Chrome DevTools to simulate visual impairment. For example, we can view websites from a blurred vision perspective.

How do you do this in DevTools? Like this:

  1. Open DevTools (right-click and select Check or Cmd Shift C).
  2. Open the DevTools command menu (Cmd Shift P on Mac and Ctrl Shift P on Windows).
  3. Select Show Rendering in the Command menu.
  4. Select the defect in the Rendering panel .

We use fuzzy vision as an example, but DevTools has other options including: full color blindness, partial color blindness, teal blindness, and total color blindness.

Like any such tool, it is designed to complement our (hopefully) existing accessibility skills. In other words, it is not instructive, but has an impact on the design and user experience we create.

Here are some additional resources on low vision accessibility and simulation:

  • Accessibility requirements for people with low vision (W3C)
  • Improve page accessibility by simulating vision defects

Get performance timing

Performance panels in DevTools sometimes look like a messy mix of shapes and colors.

The update to this is great because it does a better job of presenting meaningful performance metrics.

What we want to look at is the extra timing rectangle shown in Timing in Performance panel record. This highlights:

  • DOMContentLoaded: Event fired when initial HTML loading
  • First draw: When the browser first draws pixels onto the screen
  • First content drawing: The browser draws the point of content from the DOM, which indicates to the user that the content is loading
  • onload: When the page and all its resources are loaded
  • Maximum content drawing: the largest image or text element rendered in the viewport

Additionally, if you find the largest content drawing event in the performance panel record, you can click it for additional information.

While there is a lot of valuable information here, "relevant nodes" may be the most useful project because it specifies which element causes the LCP event.

To try this feature:

  1. Open DevTools and navigate to the Performance Panel
  2. Click "Start Analysis and Reload Page"
  3. Observe the timing indicators in the timing part of the record
  4. Click on each metric to view the additional information you have obtained

Monitor performance

If you want to get started with DevTools quickly and you've tried Lighthouse, then I recommend the Performance Monitor feature. It's kind of like having WebPageTest.org at your fingertips, such as CPU usage.

Here is how to access it:

  1. Open DevTools
  2. Open the command menu (Cmd Shift P on Mac and Ctrl Shift P on Windows)
  3. Select "Show Performance Monitor" from the command menu
  4. Interact with the website and browse
  5. Observation results

Performance monitors can give you interesting metrics, but, unlike Lighthouse, it requires you to figure out how to interpret them yourself and take action. No advice was provided. You need to study the CPU usage chart yourself and ask 90% if it is acceptable (may not).

The Performance Monitor has an interactive legend where you can turn metrics on and off, for example:

  • CPU Usage
  • JS heap size
  • DOM Node
  • JS event listener
  • document
  • Document Framework
  • Layout/second
  • Style recalculation/second

CSS Overview and Local Overview

CSS-Tricks has introduced these features, so check it out!

  • CSS Overview: A convenient DevTools panel that provides a lot of interesting statistics about the CSS used by the page
  • Local Overlay: A powerful feature that allows you to overwrite production websites with local resources so that you can easily preview changes

So, what about DevTools in other browsers?

I'm sure you've noticed that I'm using Chrome throughout the article. This is my personal browser. That is, it is worth considering:

  • Firefox DevTools looks great right now
  • As Microsoft Edge expands from Chromium, it will also benefit from these DevTools features
  • As evidenced by the Safari Technology Preview Release Notes (search the Web Inspector on this page), Safari DevTools has made great strides

In other words, please pay attention, because this is a rapidly growing area!

in conclusion

We covered a lot in a very short time!

  • Lighthouse: A panel that provides performance, accessibility, SEO and best practice tips and suggestions.
  • Check Elements: Enhancement to Check Elements feature, which provides accessibility information for Check Elements tooltips
  • Simulated Vision Deficits: A feature in the Rendering Panel for viewing pages from a low-vision perspective.
  • Performance panel timing: Other metrics in the performance panel record, displaying user-oriented statistics such as maximum content drawing
  • Performance Monitor – Real-time visualization of current website performance metrics such as CPU usage and DOM size

If you want to know the latest updates and get over 200 web development tips, check out my mailing list Dev Tips! I also have an advanced video course on ModernDevTools.com. And, I tend to post a lot of extra web development resources on Twitter.

The above is the detailed content of A Look at What's New in Chrome DevTools in 2020. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How can I include CSS only on some pages? How can I include CSS only on some pages? Jun 11, 2025 am 12:01 AM

There are three ways to selectively include CSS on a specific page: 1. Inline CSS, suitable for pages that are not frequently accessed or require unique styles; 2. Load external CSS files using JavaScript conditions, suitable for situations where flexibility is required; 3. Containment on the server side, suitable for scenarios using server-side languages. This approach can optimize website performance and maintainability, but requires balance of modularity and performance.

Flexbox vs Grid: Understanding the Key Differences in CSS Layout Flexbox vs Grid: Understanding the Key Differences in CSS Layout Jun 10, 2025 am 12:03 AM

Flexboxisidealforone-dimensionallayouts,whileGridsuitstwo-dimensional,complexlayouts.UseFlexboxforaligningitemsinasingleaxisandGridforprecisecontroloverrowsandcolumnsinintricatedesigns.

Creating an Auto-Closing Notification With an HTML Popover Creating an Auto-Closing Notification With an HTML Popover Jun 10, 2025 am 09:45 AM

The HTML popover attribute transforms elements into top-layer elements that can be opened and closed with a button or JavaScript. Popovers can be dismissed a number of ways, but there is no option to auto-close them. Preethi has a technique you can u

What is 'render-blocking CSS'? What is 'render-blocking CSS'? Jun 24, 2025 am 12:42 AM

CSS blocks page rendering because browsers view inline and external CSS as key resources by default, especially with imported stylesheets, header large amounts of inline CSS, and unoptimized media query styles. 1. Extract critical CSS and embed it into HTML; 2. Delay loading non-critical CSS through JavaScript; 3. Use media attributes to optimize loading such as print styles; 4. Compress and merge CSS to reduce requests. It is recommended to use tools to extract key CSS, combine rel="preload" asynchronous loading, and use media delayed loading reasonably to avoid excessive splitting and complex script control.

How to use Lotties in Figma How to use Lotties in Figma Jun 14, 2025 am 10:17 AM

In the following tutorial, I will show you how to create Lottie animations in Figma. We'll use two colorful designs to exmplify how you can animate in Figma, and then I'll show you how to go from Figma to Lottie animations. All you need is a free Fig

Breaking Boundaries: Building a Tangram Puzzle With (S)CSS Breaking Boundaries: Building a Tangram Puzzle With (S)CSS Jun 13, 2025 am 11:33 AM

We put it to the test and it turns out Sass can replace JavaScript, at least when it comes to low-level logic and puzzle behavior. With nothing but maps, mixins, functions, and a whole lot of math, we managed to bring our Tangram puzzle to life, no J

External vs. Internal CSS: What's the Best Approach? External vs. Internal CSS: What's the Best Approach? Jun 20, 2025 am 12:45 AM

ThebestapproachforCSSdependsontheproject'sspecificneeds.Forlargerprojects,externalCSSisbetterduetomaintainabilityandreusability;forsmallerprojectsorsingle-pageapplications,internalCSSmightbemoresuitable.It'scrucialtobalanceprojectsize,performanceneed

Does my CSS must be on lower case? Does my CSS must be on lower case? Jun 19, 2025 am 12:29 AM

No,CSSdoesnothavetobeinlowercase.However,usinglowercaseisrecommendedfor:1)Consistencyandreadability,2)Avoidingerrorsinrelatedtechnologies,3)Potentialperformancebenefits,and4)Improvedcollaborationwithinteams.

See all articles