Closed Bug 500849 Opened 16 years ago Closed 14 years ago

Improve ySlow scores for Mozilla.com

Categories

(www.mozilla.org :: General, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: morgamic, Assigned: rdoherty)

References

Details

Attachments

(2 files, 2 obsolete files)

mozilla.com is very poor when it comes to reducing overhead and is not optimized. We need to move images, css, etc. to separate domains and reduce the overall # of HTTP requests on the site.
Assignee: nobody → steven
Severity: normal → major
Any updates on this? I was just reading: http://www.stevesouders.com/blog/2009/07/27/wikia-fast-pages-retain-users/ and for us it most likely means faster site == more Firefox downloads.
Depends on: 427916
Any news on this bug?
I think we should have a sprint dedicated to performance in Sept.
(In reply to comment #5) > I think we should have a sprint dedicated to performance in Sept. +1 and all that jazz.
Would it be feasible/worthwhile to track how speed improvements affect user behavior? An A/B test would be ideal. Doing so would help us determine how much effort we should dedicate to improving performance.
(In reply to comment #7) > Would it be feasible/worthwhile to track how speed improvements affect user > behavior? An A/B test would be ideal. Doing so would help us determine how > much effort we should dedicate to improving performance. I think it's a great idea. And I have seen many reports of how slower pages == higher abandonment, less purchases/downloads, etc.
Not sure if it's a good use of time to do an A/B test for this. We can all agree that on some level page load times and performance affect adoption. Is it really important to know how much? Fixing this bug is something we should just do -- on top of the obvious side effects we also have to uphold the Mozilla standard for sites and make sure our sites are good examples of proper design and implementation. That said, if we want to do a case study and compare before/after statistics, that's great. I'm fine with incrementally improving site performance and monitoring downloads, etc. to see how they helped, but a live A/B test is probably overkill.
wfm
This data could be valuable in influencing future design decisions--particularly on the en-US/firefox page. That said, performance is something we can test more easily down the line, once SiteSpect is set up. An A/B test probably isn't worthwhile here.
I'm mostly not a fan of having an unoptimized and optimized version running in parallel. Very difficult to do technically since most perf improvements are global. It'd be a non-trivial amount of time spent towards catering to the A/B test and that's my main concern. When is SiteSpect going live?
Thanks for the background. The plan is to have it live by the end of next week.
Attached patch v1 (obsolete) — Splinter Review
Half hour of work == 13 YSlow points!
Attachment #405003 - Flags: review?(morgamic)
(In reply to comment #14) > Created an attachment (id=405003) [details] > v1 The files I edited were includes/header.inc.php, .htaccess and /includes/min/config.php, /includes/min/groupsConfig.php. The rest is Minify code.
Comment on attachment 405003 [details] [diff] [review] v1 I like this, and it has minimal PHP overhead. We should use memcache-driven caching in lieu of file-based caching to get better hit rates internally. Other than that, this is great work! Thanks Ryan!
Attachment #405003 - Flags: review?(morgamic) → review-
Attached patch v2 (obsolete) — Splinter Review
Now with memcache! (Code degrades to file-based cache if it can't connect to a memcache server)
Attachment #405003 - Attachment is obsolete: true
Attachment #406230 - Flags: review?(morgamic)
Comment on attachment 406230 [details] [diff] [review] v2 Works as advertised, but add the php_value lines to the patch and I think we're good.
Attachment #406230 - Flags: review?(morgamic) → review+
Attached patch v3Splinter Review
final patch
Attachment #406230 - Attachment is obsolete: true
r53584 I don't dare push this live on a friday afternoon. Planning on Monday.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
We should QA this at least.
(In reply to comment #21) > We should QA this at least. Yeah, and it will need IT support to put memcache config into config.php.
FWIW, this is coming up blank: https://www-trunk.stage.mozilla.com/includes/min/?g=css https://www-trunk.stage.mozilla.com/includes/min/?g=js Would that be caused by a lack of memcache config?
(In reply to comment #23) > FWIW, this is coming up blank: > > https://www-trunk.stage.mozilla.com/includes/min/?g=css > https://www-trunk.stage.mozilla.com/includes/min/?g=js > > Would that be caused by a lack of memcache config? Shouldn't be, it falls back to file-based caching if it can't connect to memcache. Will investigate.
Assignee: steven → rdoherty
This broke my staging environment, which is making it hard for me to review bug 454299.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Looks like the problem is that this patch made php-pecl-memcache a prereq, which is unfortunate. Installing it on my test server fixed the issue I was having.
(In reply to comment #26) > Looks like the problem is that this patch made php-pecl-memcache a prereq, > which is unfortunate. Installing it on my test server fixed the issue I was > having. You want bug 522828.
Depends on: 522828
(In reply to comment #27) > You want bug 522828. Originally, no, but I just morphed that bug into what I want, so ok.
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
(In reply to comment #26) > Looks like the problem is that this patch made php-pecl-memcache a prereq, > which is unfortunate. Installing it on my test server fixed the issue I was > having. I've added a check for memcache, so this shouldn't be a problem for people without memcache support in php. I'm re-opening this because there are some things we probably could do to improve YSlow scores even more.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
r53749 removes 1 more JS file (merged stats js in footer into 1 file). Up to a 77 on trunk.
(In reply to comment #30) > r53749 removes 1 more JS file (merged stats js in footer into 1 file). > > Up to a 77 on trunk. Verified: Grade C Overall performance score 77 Ruleset applied: YSlow(V2) URL: https://www-trunk.stage.mozilla.com/en-US/
Should we resolve?
(In reply to comment #32) > Should we resolve? I want to push the new code live and leave this bug open. I won't be happy until we get an A for the homepage.
So... how is this different from bug 557562?
(In reply to comment #34) > So... how is this different from bug 557562? Ya, they're pretty much the same thing, although that bug will take it slightly further by inlining CSS and JS completely, and focuses only on 3 landing pages, while this is more general. I guess it's a subset of this bug. ANYwho, if there's no actionable items in this bug, let's close it out, or set a list of things to do next.
No actionable items? Closing ! :)
Status: REOPENED → RESOLVED
Closed: 16 years ago14 years ago
Resolution: --- → FIXED
Component: www.mozilla.org/firefox → www.mozilla.org
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: