Skip to content

Commit

Permalink
Fix grammatical / phrasing error (mdn#36130)
Browse files Browse the repository at this point in the history
* Fix grammatical / phrasing error

* Update files/en-us/web/performance/how_browsers_work/index.md

---------

Co-authored-by: Hamish Willee <[email protected]>
  • Loading branch information
sensingturtle and hamishwillee authored Oct 4, 2024
1 parent be48127 commit 110f8c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/en-us/web/performance/how_browsers_work/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ As with HTML, the browser needs to convert the received CSS rules into something

The CSSOM tree includes styles from the user agent style sheet. The browser begins with the most general rule applicable to a node and recursively refines the computed styles by applying more specific rules. In other words, it cascades the property values.

Building the CSSOM is very, very fast and is not displayed in a unique color in current developer tools. Rather, the "Recalculate Style" in developer tools shows the total time it takes to parse CSS, construct the CSSOM tree, and recursively calculate computed styles. In terms of web performance optimization, there are lower hanging fruit, as the total time to create the CSSOM is generally less than the time it takes for one DNS lookup.
Building the CSSOM is very, very fast, and this build time information is not displayed in the developer tools.
Rather, the "Recalculate Style" in developer tools shows the total time it takes to parse CSS, construct the CSSOM tree, and recursively calculate computed styles. In terms of web performance, there are many better ways to invest optimization effort, as the total time to create the CSSOM is generally less than the time it takes for one DNS lookup.

### Other processes

Expand Down

0 comments on commit 110f8c9

Please sign in to comment.