Skip to content

feat: data saver mode with lighter Cloudinary renditions - #30

Merged
im-rk merged 2 commits into
mainfrom
feature/data-saver-mode
Oct 3, 2026
Merged

im-rk merged 2 commits into
mainfrom
feature/data-saver-mode

Conversation

@im-rk

@im-rk im-rk commented Oct 3, 2026

Copy link
Copy Markdown
Member

What

Data saver for slow and metered mobile connections. One rewrite, liteUrl(), turns any Cloudinary URL Pravaha builds into a lighter one: half the pixels, q_auto:low, captions scaled with the frame. The player streams the sd HLS ladder and skips the sprite and highlights graph. Library cards stop loading hover previews. A header switch controls it, and with nothing stored it follows Save-Data and 2G/3G.

Measured on real Cloudinary output

Thumbnail -76%, clip -41%, reel -38%, Moment -35%, hover preview -33%; streaming ladder top rendition 3.4 Mbps -> 0.93 Mbps.

Verified

  • 126 unit tests, typecheck and lint clean.
  • In a real browser: the switch flips thumbnails w_640,q_auto -> w_320,q_auto:low, reels to 640x360, and the player requests sp_sd/br_sd480 instead of sp_hd_lean/br_hd720.

@vercel

vercel Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
pravaha Ready Ready Preview Oct 3, 2026 8:37am UTC

@im-rk
im-rk merged commit 23e34c2 into main Oct 3, 2026
3 checks passed
@im-rk
im-rk deleted the feature/data-saver-mode branch October 3, 2026 08:38

This branch was successfully deployed

1 active deployment
Preview — 3a63c8ae Deployed Oct 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant