Closed Bug 1066661 Opened 12 years ago Closed 12 years ago

/firefox/new/ page loads template-resp.less twice

Categories

(www.mozilla.org :: Pages & Content, defect)

Production
x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: agibson, Assigned: agibson)

Details

(Whiteboard: [kb=1505242])

Attachments

(1 external file)

Looking in the network panel in Dev Tools on https://www.mozilla.org/en-US/firefox/new/, there are two page-level CSS files loaded: firefox-resp-min.css (61kb) https://github.com/mozilla/bedrock/blob/master/bedrock/settings/base.py#L182 firefox_new-min.css (77kb) https://github.com/mozilla/bedrock/blob/master/bedrock/settings/base.py#L240 However, firefox_new-min.css already imports template-resp.less here: https://github.com/mozilla/bedrock/blob/master/media/css/firefox/new.less#L5 So we are effectively loading the same CSS twice!? This is an easy fix and we can half the CSS page weight.
Whiteboard: [kb=1505242]
Assignee: nobody → agibson
Status: NEW → ASSIGNED
Attached file GitHub pull request —
Commits pushed to master at https://github.com/mozilla/bedrock https://github.com/mozilla/bedrock/commit/d8931299d65ff38b960c64951bd47bfb39e4a43d [fix bug 1066661] Firefox /new page loads template-resp.less twice https://github.com/mozilla/bedrock/commit/0708bf65e4a88e1370dd9ccbebf023075d305071 Merge pull request #2275 from alexgibson/bug-1066661-firefox-loads-css-twice [fix bug 1066661] Firefox /new page loads template-resp.less twice
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: