Network Information
Respects Data Saver by fetching nothing before a press.

How Riff uses it
At startup the script reads navigator.connection.saveData. When Data Saver is on, it sets preload to none on both media elements, overriding the template's metadata.
Why
On a metered connection the player should not download even a track's metadata before the listener presses play.
Without it
The property is optionally chained, so browsers without it keep the template's preload.
Where
- plugins/riff/assets/player/state.js, line 25
if ( navigator.connection?.saveData ) {
Links open the source at the commit this page was published from.
Specification: Network Information API (WICG draft). Reference: Network Information on MDN.