[[ https://en.wikipedia.org/wiki/Does_exactly_what_it_says_on_the_tin | Ronseal ]]. This will shave at least 1kb of JS off the Popups bundle.
---
The Page Previews codebase includes instruments and associated code for:
- [[ https://meta.wikimedia.org/wiki/Schema:VirtualPageView | VirtualPageViews ]]
- [[ https://grafana.wikimedia.org/d/000000340/page-previews | The Page Previews dashboard ]]
- The Popups schema
The instrument for the latter has long since been disabled but the associated code is still present in the build product that we ship to the user on very nearly all of mainspace pageviews on the Wikipedias.
### Acceptance Criteria
[] The Popups schema instrument is removed
[] Associated code (e.g. configuration variable reading) is removed
[] The documentation is updated
[] The production configuration is updated
### Developer notes
Quick analysis, suggests the code is not being utilised and nicely organized: pageviews.js takes care of the VirtualPageView and is completely separate from statsv (For performance timing metrics) . `eventLogging.js` is the one we want to remove.
When implementing this, we'll need to work out if changes can also be made to `changeListeners/syncUserSettings.js` which seems to support the event logging.
POC: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Popups/+/655953