Slashdot Log In
Yahoo's YSlow Plug-in Tells You Why Your Site is Slow
Posted by
CmdrTaco
on Wed Jul 25, 2007 08:25 AM
from the like-i-need-a-plugin-to-tell-me-i-suck dept.
from the like-i-need-a-plugin-to-tell-me-i-suck dept.
Stoyan writes "Steve Souders, performance architect at Yahoo, announced today the public release of YSlow — a Firefox extension that adds a new panel to Firebug and reports page's performance score in addition to other performance-related features. Here is a review plus helpful tips how to make the scoring system match your needs.
This discussion has been archived.
No new comments can be posted.
Yahoo's YSlow Plug-in Tells You Why Your Site is Slow
|
Log In/Create an Account
| Top
| 103 comments
| Search Discussion
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
/. gets a D (Score:5, Funny)
(http://df0.info/ | Last Journal: Saturday November 10, @02:11AM)
Re:/. gets a D (Score:5, Funny)
Re:/. gets a D (Score:5, Interesting)
(http://jasonrumney.net/)
Re:/. gets a D (Score:4, Interesting)
Something I would love to see are some of the headers condensed by the browser and server. For instance, on first request the browser sends the full headers. In the reply headers, the server would set a X-SLIM-REQUEST header with a unique ID that represents that browser configuration's set of optional headers (Accept, Accept-language, Accept-encoding, Accept-charset, User-agent, and other static headers). Further requests from that browser would then simply send the X-SLIM-REQUEST header and unique ID and the server would handle unpacking it -- if the headers are even needed. Servers that don't supply the header would continue to receive full requests, preserving full backward and forward compatibility.
There are a few things to reduce request sizes for web applications. MOD_ASIS is one of the best ones. We use it as one of the last steps of our deployment process. All images are read in via script, compressed if they are over a certain threshold, and minimal headers are added. Apache then delivers them as-is -- reducing load on Apache as well as the network (the only thing Apache adds is the Server: and Date: lines). ETags and last-modified dates are calculated in advance. Also certain responses such as simple HTTP Moved (Location:) responses, GZip isn't used -- GZiping the response actually *adds* to the size due to their very small document size.
Re:/. gets a D (Score:5, Interesting)
(Last Journal: Thursday April 19 2007, @10:15PM)
I skipped the actual link and score on sites that are pretty much just representative of the sites around them. I wanted to include them by name, though, to show where they fall. I've stuck mostly to main index pages, and I've noted where I've gone deeper.
A: Google [google.com] (99%), Altavista main page [altavista.com] (98%), Altavista Babelfish [altavista.com] (90%) (including upon doing a translation from English to French), Craigslist [craiglist.org] (96%), Pricewatch [pricewatch.com] (93%), Slackware Linux [slackware.com], OpenBSD [openbsd.org], Led Zeppelin site at Atlantic [ledzeppelin.com] (100%), supremecommander.com, w3m web browser site [w3m.org] (96%)
B: Apache.org [apache.org] (87%), the lighttpd web server [lighttpd.net] (84%), Google Maps, which also got a C once [google.com] (84% in most cases), Perlmonks [perlmonks.org] (84%), Dragonfly BSD [dragonflybsd.org] (85%), Butthole Surfers band page [buttholesurfers.com] (81%), 37 Signals [37signals.com]
C: One Laptop Per Child, [olpc.com], ESR's homepage [catb.org], the Open Source Initiative [opensource.org] (78%), Google News [google.com] (73%), Lucid CMS [lucidcms.net] (74%), Perl.org [perl.org] (75%), lucasfilm.com, Charred Dirt game [charreddirt.com]
D: gnu.org, The Register [theregister.co.uk], A9 [a9.com] (66%), kernel.org [kernel.org], Akamai [akamai.com] (64%), kuro5hin.org, freshmeat.net, linuxcd.org, Movable Type [movabletype.org] (61%), Postnuke [postnuke.com], blogster.com, Joel on Software [joelonsoftware.com] (67%), Fog Creek Software [fogcreek.com], metallica.com, gaspowered.com, Scorched 3D [scorched3d.co.uk] (68%), id software [idsoftware.com] (64%), ISBN.nu book search [isbn.nu]
F: MS IIS [microsoft.com] (49%), microsoft.com, msn.com, linux.com, fsf.org, discovery.com, newegg.com, rackspace.com, the Simtel archive [simtel.net] (26%), CNet Download [download.com] (29%), Adobe [adobe.com] (58%), savvis.com, mtv.com, sun.com, pclinuxos.com, freebsd.org, phpnuke.org, use.perl.org, ruby-lang.org, python.org, java.com, Rolling Stones band page [rollingstones.com] (56%), powellsbooks.com, amazon.com, barnesandnoble.com, getfirefox.com
My site for my company (96%) gets an A (no, I'm not going to get it slashdotted) which is pretty simple but has a pic and some Javascript on it. Several sites I have done or have helped design with someone else get C or D ratings.
Re:My site gets a D too (Score:4, Informative)
(http://graha.ms/ | Last Journal: Friday August 17, @06:22PM)
I doubt moving them above title makes any noticeable difference in the real world though.
Sure but (Score:4, Funny)
(http://www.loconet.ca/)
Another tool (Score:3, Informative)
(http://www.klaidas.lt/)
Re:Another tool (Score:5, Funny)
wondeful. except that's not why it's slow (Score:3, Insightful)
nice plugin (Score:1)
Firebug not Firefox (Score:2)
(Last Journal: Wednesday October 31, @08:33AM)
Re:Firebug not Firefox (Score:4, Informative)
Web site optimization for dummies (Score:1, Insightful)
Since 9/10 web developers can't even be bothered using a validator, I predict great success for this tool.
Why is this a troll? (Score:5, Insightful)
The Anonymous Coward here is spot on. This thing gives awful, awful advice. Some of these in particular I really hated as a dialup user.
This is only a win if your images are tiny. Why are you optimizing for this? Tiny images do not take long to download, even on dialup, because they are tiny. Frankly I would prefer to have all the site's little icons progressively appear as they become available than have to wait while a single image thirty times the size of any one of them loads. Or, perhaps, fails to load, so that I have to download the whole thing again instead of just the parts I have.
This is hands down the stupidest idea I have ever heard. Ignoring for the moment that it won't even work for the 70% of your visitors using IE, sending the same image multiple times as base64-encoded text will completely swamp any overhead that would have been introduced by the HTTP headers.
Less egregious than suggesting CSS Sprites, but it still suffers from the same problems. These are not large files, and if they are large files, the headers are not larger.
What, seriously? Are you really optimizing for your visitors who load one and only one page before their cache is cleared? Even though you "measured... and found the number of page views with a primed cache is 75-85%"?
And if you ever change something but forget to change the file name, your visitors will have to reload everything on the damn page to get the current version of the one thing you changed. Assuming, of course, they even realize there should be a newer version than the one they're seeing. And assuming that they actually know how to do that.
Um. Duh? link elements are not valid in the body. style elements are
Why sites are slow (Score:2, Interesting)
If your site has 10 different affiliate links/sponsors, all hosted on different providers, your site will be slow.
Similarly, if your site has 100 different java/javascript crapplets,widgets, your site will be even slower.
Here is a simple guide for site creators:
1. Don't overload on ads, I'm not going to view them anyway
2. Put some actual content I'm interested in on your site
3. Don't overload me with java/javascript crap, I don't care what my mouse pointer looks like, just let me click
4. Not everything needs a php/mysql front/back end.
Feel free to use this as a guide, and I might just visit those sites.
F: You are co-located at 365 Main. (Score:5, Funny)
(Last Journal: Friday October 01 2004, @03:27PM)
hmmm... (Score:5, Insightful)
(http://web.lemuria.org/)
For example "use CDN" (aka Akamai, etc.) - yeah, right. For Yahoo.com that's an idea. For my private website, that's bullshit. If they really use this internally to rate sites, their rating sucks by definition.
So in summary there are a couple good points there, and a couple that are not really appropriate. Expires: Headers are a nice idea for static webpages. But YSlow still gives me an F for not using one on a PHP page that really does change every time you load it.
Web optimization made clear (Score:2)
(http://technical-writing.dionysius.com/ | Last Journal: Monday November 05, @03:35PM)
Finally, someone tells what web developers have known for years [yahoo.com]: optimizing the site is not a matter of splitting your content into as many images as possible over an enterprise app, but good clean design and code.
For years, as a web designer, every time I got ready to deploy I encountered some nitwit who would say, "You're going to break up that giant image, aren't you? We can put it on nine servers!" -- creating organizational havoc, a completely unmanageable asset mess of a project, and driving everyone nuts. The Souders-Yahoo approach is different. He suggests the obvious, which is have fewer page elements, stick them into the HTML code if possible, and trim that ragged mess of Java and CSS.
Also, as a technical writer, I'm impressed whenever someone gets paid to write down the obvious.
And yes... (Score:1)
Maybe Yahoo should use it themselves... (Score:2)
Friendlier Reporting (Score:3, Funny)
(http://hitekhomeless.blogspot.com/)
Just the start of their new plugin scanners (Score:4, Funny)
(http://www.devinmoore.com/ | Last Journal: Thursday May 24, @06:16AM)
YMe - translates your site into emo-speak.
Source code of the YSlow tool (Score:2)
load order effects perceived slowness (Score:2, Insightful)
Lets say you visit, oh, dilbert.com (just to pick on a geeky site) to get your daily dose of dilbert. If the first thing that is rendered on your screen is the actual comic, you don't really care that it takes another 10-20 seconds to display the buttons, menus, sidebars, topbars, bottombars, animations, ads and ads for ads. It can do that while you chuckle over the comic.
On the other hand, if you have to sit there and drum your fingers while all the other crap loads first before you get to look at todays dilbert, then you are going to be muttering "why is this site so freaking slow?" And if wwww.weselladstoadserversbythebillions.com got it's DNS server taken out by a freak lightning strike, you could be sitting there a while.
Would it be possible to have a plug-in or extension, so that I could right click on the actual content of a site and say "next time I visit here, load this bit first?" Yes, I could just block everything else on the site, but then they'll change it a week later, and some of the non-content stuff might actually be useful on occasion. I don't want to have to be in an arms race with a million web-monkeys on a thousand different sites just to browse my RDA of surfing.
Yslow? Because you didn't pay... (Score:2)
-ted
Nice utility (Score:2)
YSpy? (Score:2)
(Last Journal: Thursday August 30, @10:31PM)
So when Yahoo trundles along offering me neat tracking software, umm, no thanks. There's no telling where you might end up reading about it. Now sure, in the U.S. you don't get locked up for criticizing the government, but things do get leaked or given to the wrong people. Anyone who has ever written a comment that was less that P.R.-worthy should consider that. Yahoo has shown itself to be less than trustworthy.
http://www.csmonitor.com/2005/0909/p01s03-woap.ht
http://www.rsf.org/article.php3?id_article=14884 [rsf.org]
http://www.nytimes.com/2005/09/12/business/worldb
Yahoo giving advise on web pages? (Score:1)
(http://plan-b-for-openoffice.org/)
Re:first post (Score:1, Funny)
Re:website testing (Score:3, Insightful)