Manual:$wgResourceLoaderClientPreferences

Enable client-side preferences for unregistered users.

This is only supported for unregistered users. For registered users, skins and extensions must use user preferences (e.g. hidden or API-only options) and swap class names server-side through the Skin interface.