Closed Bug 829709 Opened 13 years ago Closed 12 years ago

Do not load CSS files from all skins by default

Categories

(Bugzilla :: User Interface, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.4

People

(Reporter: LpSolit, Assigned: LpSolit)

References

Details

(Keywords: perf)

Attachments

(3 files)

Bugzilla automatically loads CSS files from all existing skins installed. For instance, every time I visit a page on bmo, 5 global.css, 5 index.css, etc... files are fetched. This is totally useless and consumes time, even if loaded from the browser cache. I vote to only load the skin selected in user prefs + Classic (Classic must always be loaded as skins generally do not have all the CSS rules, but only those which differ from Classic). This would limit files being loaded to 2 only, or 3 if there is something in skins/custom/.
See all the duplicated CSS files. I have no idea why there is some delay to load the remaining files. Any idea?
Loading all skins by default has been introduced by bug 322693 in Bugzilla 3.0. Per bug 322693 comment 5, wurblzap intentionally loads all skins by default so that you can select another skin from your browser, for single pages only. But nobody uses this feature, I'm pretty sure, and it's not persistent anyway, so that's a useless feature.
Depends on: 322693
Attached patch patch, v1.1Splinter Review
Assignee: ui → LpSolit
Status: NEW → ASSIGNED
Attachment #701337 - Flags: review?(dkl)
Keywords: relnote
Target Milestone: --- → Bugzilla 5.0
Keywords: perf
Comment on attachment 701337 [details] [diff] [review] patch, v1.1 Review of attachment 701337 [details] [diff] [review]: ----------------------------------------------------------------- Looks good and works as expected. r=dkl
Attachment #701337 - Flags: review?(dkl) → review+
Flags: approval?
Flags: approval4.4?
dkl and glob want it for 4.4. I have no strong opinion on this -> 4.4.
Flags: approval?
Flags: approval4.4?
Flags: approval4.4+
Flags: approval+
Target Milestone: Bugzilla 5.0 → Bugzilla 4.4
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/ modified Bugzilla/Template.pm modified template/en/default/global/header.html.tmpl Committed revision 8553. Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/4.4/ modified Bugzilla/Template.pm modified template/en/default/global/header.html.tmpl Committed revision 8501.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Attached patch fix bustageSplinter Review
It was actually a bad idea to move [% PROCESS global/messages.html.tmpl %] later in header.html.tmpl. It must be called before the title is displayed. This patch fix bustage reported by QA tests. Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/ modified template/en/default/global/header.html.tmpl Committed revision 8557. Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/4.4/ modified template/en/default/global/header.html.tmpl Committed revision 8505.
Added to relnotes for 4.4rc2.
Keywords: relnote
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: