Wikipedia Zero currently detects users are have Javascript disabled or on browsers with limited support for ResourceLoader, barring any performance issues this code should be generalized to detect these states for all web users, rather than just wikipedia zero users.
Required
- Detect NoScript condition
- Detect RLI (ResourceLoader Impaired) condition
- Detect JavaScript Supported condition
- Ability to segment data based on geo region, and device class, and zero user status
Implementation ideas (from T53854: Log page loads without JavaScript which was merged into here):
This could work similar to:
<noscript>
<img src="event.gif?hardcodedevent&cachebuster">
</noscript>
Depending on our exact goals, we could think about the sampling rate (if any), the cache buster, and how to handle cached anonymous page views.