Hacker
Cyril
@cyril
Projects
LiteSwitch: data-saver mode for slow, expensive connections, decided by Flagsmith
Flagsmith Experimentation HackathonNov 2026
LiteSwitch is an open-source data-saver mode for websites. In Ghana and much of Africa and South Asia, mobile data is expensive: at MTN Ghana's pay-as-you-go rate, simply opening a typical page with autoplay HD video costs about GH₵0.70 before you read a word. Browsers already report when a visitor is on a slow connection (2G/3G) or has Data Saver on, but almost no site uses that signal. LiteSwitch reads those signals in the browser. Fast visitors always get the full page. Slow or Data-Saver visitors are identified to Flagsmith, and a multivariate flag (page_weight) decides whether they get the full page or a lite one: tap-to-load 360p video, small lazy images, system fonts, no embeds. A footer receipt shows each visitor what the page cost them in megabytes and cedis. Who would use it: any site whose audience is on prepaid mobile data (education, news, NGOs, job boards). It ships as a drop-in folder (lib/liteswitch), a Flagsmith setup file and a plain-HTML example, so another site can add it in about 10 minutes.