Skip to content

Commit

Permalink
Fixed Typo in CSS Performance Optimization Page (mdn#29089)
Browse files Browse the repository at this point in the history
  • Loading branch information
bipin-mv authored Sep 13, 2023
1 parent f0a68e5 commit b0eaa03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/learn/performance/css/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ To optimize the CSSOM construction and improve page performance, you can do one

Making your selectors less complex and specific is also good for maintenance. It is easy to understand what simple selectors are doing, and it is easy to override styles when needed later on if the selectors are less [specific](/en-US/docs/Learn/CSS/Building_blocks/Cascade_and_inheritance#specificity_2).

- **Don't apply styles to more elements than needed**: A common mistake is to apply styles to all elements using the [universal selector](/en-US/docs/Web/CSS/Universal_selectors), or at least, to more elements than needed. This kind of styling can impact performance negtively, especially on larger sites.
- **Don't apply styles to more elements than needed**: A common mistake is to apply styles to all elements using the [universal selector](/en-US/docs/Web/CSS/Universal_selectors), or at least, to more elements than needed. This kind of styling can impact performance negatively, especially on larger sites.

```css
/* Selects every element inside the <body> */
Expand Down

0 comments on commit b0eaa03

Please sign in to comment.