Page MenuHomePhabricator

[Perf trend] "user.cssprefs" is the most-frequently built module
Closed, ResolvedPublic

Description

Per https://grafana.wikimedia.org/#/dashboard/db/resourceloader.

The user.cssprefs module is built over 60 times per minute globally. This isn't too surprising since it's embedded in the page and can vary by user. So this will likely reflect page view traffic of logged-in users, as well as cache population for logged-out users.

However the user.options and user.tokens module are both generated only 11 times per minute.

Figure out why this is happening and/or bring it down.

EDIT: It looks like this module is redundant. It should be merged into the user module as additional stylesheet. However we can't do that until we change the module to output nothing for logged-out users (e.g. any default styles should become part of a core or skin module). This because "user.prefs" is embedded while "user" is a separate request and we don't want to add a separate request for all reader views for this one line of css.

Event Timeline

Krinkle raised the priority of this task from to Needs Triage.
Krinkle updated the task description. (Show Details)
Krinkle subscribed.
Krinkle renamed this task from [Perf trend] The "user.cssprefs" is the most-frequently built module to [Perf trend] "user.cssprefs" is the most-frequently built module.Jul 9 2015, 11:32 AM
Krinkle set Security to None.

Change 223596 had a related patch set uploaded (by Catrope):
UserCSSPrefsModule: Remove redundant text-decoration:none rules

https://gerrit.wikimedia.org/r/223596

Change 223596 merged by jenkins-bot:
UserCSSPrefsModule: Remove redundant inline text-decoration:none css rules

https://gerrit.wikimedia.org/r/223596

Krinkle claimed this task.