Skip to content

Use slow connection mode when navigator.connection.saveData is enabled #1122

@shuding

Description

@shuding

We are already considering cases like 2g network here:

['slow-2g', '2g'].indexOf(navigator['connection'].effectiveType) !== -1
just need to consider the data saving mode to the same place.

Ref: https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/save-data

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions