Skip to content

Commit

Permalink
Inline the list of breakpoints
Browse files Browse the repository at this point in the history
Co-authored-by: Felix Arntz <felixarntz@google.com>
  • Loading branch information
westonruter and felixarntz authored Nov 8, 2024
1 parent 4e2d2fb commit 38858ec
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plugins/optimization-detective/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,7 @@ Refer to [Image Prioritizer](https://github.com/WordPress/performance/tree/trunk

**Filter:** `od_breakpoint_max_widths` (default: `array(480, 600, 782)`)

Filters the breakpoint max widths to group URL Metrics for various viewports. Each number represents the maximum width (inclusive) for a given breakpoint. So if there is one number, 480, then this means there will be two viewport groupings, one for 0\<=480, and another \>480. If instead there are the two breakpoints defined, 480 and 782, then this means there will be three viewport groups of URL Metrics:

1. Mobile: 0-480px
2. Tablet: 481-782px
3. Desktop: \>782px
Filters the breakpoint max widths to group URL Metrics for various viewports. Each number represents the maximum width (inclusive) for a given breakpoint. So if there is one number, 480, then this means there will be two viewport groupings, one for 0\<=480, and another \>480. If instead there are the two breakpoints defined, 480 and 782, then this means there will be three viewport groups of URL metrics, one for 0\<=480, another 481\<=782, and another \>782.

These default breakpoints are reused from Gutenberg which appear to be used the most in media queries that affect frontend styles.

Expand Down

0 comments on commit 38858ec

Please sign in to comment.