-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Capture different pixel densities in asset discovery (#970)
* ✨ Capture different pixel densities in asset discovery With the addition of real native devices in our rendering infrastructure, we now need to capture 2x++ pixel images for pages to render properly (since the real devices have high pixel density screens). With the new `deviceScaleFactor` config option, we now will resize the browser to each specified width at 1x and also whatever the passed value is for `deviceScaleFactor`. We also run both `beforeResize` and `afterResize` events with the additional scale resizes. * 🚧 Implement `before/afterMobile` & move pixel ratio to their own tab * ♻ Trigger resource requests for each pixel ratio Also renamed the new deviceScaleFactor option to devicePixelRatio to better reflect web standards rather than the API option name. * 💡 Add description comment to trigger resource request function Co-authored-by: Wil Wilsman <[email protected]>
- Loading branch information
Showing
4 changed files
with
92 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters