Page MenuHomePhabricator

Gather mw.loader.store (localStorage) statistics from users
Closed, DeclinedPublic

Description

We know that people hit the limit, probably due to ResourceLoader, but we don't know how often that happens. Going forward, even if we move RL's cache out of localStorage, we need to have visibility on real world usage of localStorage. Ideally we would not only track when users hit the limit, but also get statistics on what is taking up the space.

I think this is particularly important as 3rd-party JS libraries or even gadgets could also be consuming localStorage space without us noticing.

Event Timeline

Gilles raised the priority of this task from to Medium.
Gilles updated the task description. (Show Details)
Gilles added subscribers: Aklapper, Florian, Jdlrobson and 29 others.

As a quick start, we can add tracking of localStorage to asset-check. That'll give us insight into the default/deterministic use of localStorage on major wikis. We already track this for cookies.

This would account for all mw.loader.store data for modules loaded by default, and any values set by gadgets/scripts on load.

Getting RUM telemetry would even better since many values are only set later during real user interaction. Perhaps using EventLogging, or more light-weight using the existing statsv beacon (would need to extend wgWMEStatsdBaseUri/wikimediaEvents.statsd to support gauge in addition to timing and counter).

ori lowered the priority of this task from Medium to Lowest.Sep 10 2015, 7:36 PM
Krinkle renamed this task from Gather localStorage usage statistics from users to [Research] Gather localStorage usage statistics from users.Dec 22 2015, 3:35 AM
Krinkle raised the priority of this task from Lowest to Medium.Jan 11 2016, 8:16 PM
Krinkle removed a subscriber: wikibugs-l-list.

This task is about gathering data about how much of the available storage capacity is used. E.g. how many keys or how many bytes. It is not about whether a browser supports localStorage.

Krinkle renamed this task from [Research] Gather localStorage usage statistics from users to Gather mw.loader.store (localStorage) statistics from users.Jul 12 2017, 4:31 AM
Krinkle edited projects, added MediaWiki-ResourceLoader; removed JavaScript.
Krinkle added a subscriber: StudiesWorld.
Krinkle lowered the priority of this task from Medium to Low.Apr 6 2019, 8:24 PM
Peter removed Peter as the assignee of this task.Mar 19 2020, 12:12 PM