Closed Bug 582862 Opened 14 years ago Closed 14 years ago

Improve our YSlow! score (currently D, 67)

Categories

(developer.mozilla.org Graveyard :: Wiki pages, defect)

defect
Not set
blocker

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stephend, Unassigned)

References

()

Details

(Keywords: perf)

Attachments

(1 file)

http://mdn.staging.mozilla.com/en-US/ gets a YSlow! score of "D" (67, ruleset 2).

YSlow! and Minify miss you, Ryan!

Quick, big takeaways:

* This page has 10 external Javascript [sic] scripts. Try combining them into one.
* This page has 13 external background images. Try combining them with CSS sprites.
Oh, and:

* compress assets using gzip
* add expires headers

(Only added you, Ryan, in case someone picks this up and needs help; not expecting you to fix it.)
Yes, *please* work on performance before launch. 

You can use the Minify library to easily concatenate, minify and gzip css & js: http://code.google.com/p/minify/

Spriting all the icons would be very helpful.

Some of the larger images that are jpgs could be compressed more.

Webpagetest.org results: http://www.webpagetest.org/result/100729_21K5/

There's a lot of pretty simple and easy stuff that can be done (gzip, contact, expires) that will make the site really fast.
Making blocker.  Let's make sure to do everything we can to make the new site snappy.
Severity: normal → blocker
(In reply to comment #3)
> Making blocker.  Let's make sure to do everything we can to make the new site
> snappy.

Yay, thanks!
We are using the minify library (in its django incarnation) already. Staging is just set to TEMPLATE_DEBUG at the moment, so it doesn't use the minified assets. We could have IT change that and run ``./manage.py compress_assets`` on update.

CCing Craig, who'll probably help out with the spritification.
Fred:  Is this something you can own so we get it done before launch?
(In reply to comment #5)
> CCing Craig, who'll probably help out with the spritification.

I'll sprite everything that's sensibly spritable (especially the icons) and I can crunch the JPEGs down a bit more without sacrificing quality.
(In reply to comment #7)
> (In reply to comment #5)
> > CCing Craig, who'll probably help out with the spritification.
> 
> I'll sprite everything that's sensibly spritable (especially the icons) and I
> can crunch the JPEGs down a bit more without sacrificing quality.

Yes, thanks in advance for doing that. Feel free to just commit that to the main repository.

I'll file an IT bug to have them minify assets on staging already, so staging gets closer to what prod will be like.
Assignee: nobody → fwenzel
Depends on: 583994
All right, minification is enabled on staging. Over to Craig for the sprites, and then we are probably good for now.
Assignee: fwenzel → craigcook.bugz
Sprited what was readily spritable and compressed some other images a bit more. The total byte savings is pretty good but the sprites will definitely cut down on the HTTP hits.
We have a C grade now, 76. We're not going to use a CDN for now, but expires headers and gzip make sense.

CCing Shyam: Do you guys usually set that up as part of a production server config? I don't think it's something for us to fix code-side? Also, do we need to make sure this happens when we push to production, or do you usually use a config boilterplate that already applies gzip to certain MIME types and perhaps far-future expires headers?
Assignee: craigcook.bugz → nobody
Target Milestone: --- → 0.9
bumping to 0.9.1 since this was supposed to be fixed in 0.9.0
Target Milestone: 0.9 → 0.9.1
Blocks: 607658
We're up to a B grade now!

We should track this and make incremental improvement.
Future release - Bug#607658
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
qa-verified-staging
qa-verified-staging 
http://gtmetrix.com/reports/developer-stage9.mozilla.org/99JFFyVu
YSlow Grade C 79%
PageSpeed Grade B 89%
verified fixed on production 
http://gtmetrix.com/reports/developer.mozilla.org/yi8gwbE0
Yslow Grade B 81%

PageSpeed  Grade B 85%
Status: RESOLVED → VERIFIED
Component: Website → Landing pages
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: