Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-1011

Don't load album covers if Save-Data HTTP header is on

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None

      https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Save-Data

      If a user's browser has set the header "Save-Data: on", we should detect that and set a javascript property in global_props accordingly.
      https://github.com/metabrainz/listenbrainz-server/blob/7ce4e0d823/listenbrainz/webserver/utils.py#L44

      Then in the React pages, we can avoid loading and showing cover artwork on ListenCards.

            faraz16iqbal faraz16iqbal
            mr_monkey Monkey
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package