It's sometimes useful to store volatile preferences outside stored user preferences. Typically this is done in cookies which [1] we should probably move away from in preference for localStorage
MobileFrontend has a library mw.mobileFrontend.require( 'settings') that saves/gets settings from local storage with optional cookie fallback.
Flow has its own one and there have been various other attempts [2] to do this. Does VE do anything similar?
We should standardise on a lean library that does this in core.
[1] https://gerrit.wikimedia.org/r/#/c/146784/
[2] http://www.cookielaw.org/the-cookie-law/