magento / pwa-studio

🛠Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
https://developer.adobe.com/commerce/pwa-studio/
Open Software License 3.0
1.06k stars 683 forks source link

PWA-3285 : Update networkUtils.js to check saveData mode #4270

Closed glo85315 closed 2 months ago

glo85315 commented 2 months ago

Description

Add data saver verification before prefetching images.

Data Savers allow users to signal to a site if they would prefer lighter data-usage where possible. PWA Studio respects Save-Data preferences where navigator.connection.saveData is supported by the browser.

Related Issue

Closes #3708

Acceptance

Verification Stakeholders

Specification

Verification Steps

Test scenario(s) for direct fix/feature

Test scenario(s) for any existing impacted features/areas

Test scenario(s) for any Magento Backend Supported Configurations

Is Browser/Device testing needed?

Any ad-hoc/edge case scenarios that need to be considered?

Screenshots / Screen Captures (if appropriate)

Breaking Changes (if any)

Checklist

pwa-studio-bot commented 2 months ago
Messages
:book: DangerCI Failures related to missing labels/description/linked issues/etc will persist until the next push or next pr-test build run (assuming they are fixed).
:book: Access a deployed version of this PR [here](https://pr-4270.pwa-venia.com/). Make sure to wait for the "pwa-pull-request-deploy" job to complete.

Generated by :no_entry_sign: dangerJS against ca5627ecd856ca44db3385a2cc4034052bbf2207