Welcome Guest!
Please login
If you do not have an account yet on The Web Squeeze forums, please Register! It’s FREE and there are many benefits:
- Receive Fast Advice
- Learn Programming Languages
- Get Professional Website Reviews
- Quick Troubleshooting Assistance
Websqueeze Yslow & File Size
This is a discussion on Websqueeze Yslow & File Size, within the Feedback section. This forum and the thread "Websqueeze Yslow & File Size" are both part of the Feedback category.
![]() ![]() |
Aug 17 2008, 05:56 AM
Post
#1
|
|
|
Squeeze Machine ![]() Posts: 682 Joined: 15-February 08 From: UK |
Check out the Yslow score for the Websqueeze homepage: grade F (fail), 42%.
Before you think I'm being holier-than-thou: I'm not much better. I get a D, 68%. Here are a few things that stand out:
8 of the 25 images account for 90% of the total 271 kb image file size; these large images look to me as though they have not been optimised (I feel their file size should be smaller, given the image content). The 3 Jquery javascript files account for 85% of the total 188 kb javascript file size. This is especially shabby, because jquery.js and jquery-lastest.js are (almost) the same file (the former is a minified version of the latter; it's also a more recent revision by three days). So you've included the Jquery library twice. Note that Jquery compresses down to about 16 kb, when minified and Gzipped. Sorry to whinge, but web-expert sites like the Websqueeze ought to be examples of good practice in this respect. At the moment, it's an example of how not to make a fast website. I'm going through the Yslow tasks myself at the moment, so if I can help, just ask... |
|
|
Aug 17 2008, 08:36 AM
Post
#2
|
|
![]() Co-Founder ![]() Posts: 2,664 Joined: 13-February 08 From: On the forum! |
Thanks Mike for letting me know about all this. I do agree that speed is a very important factor, and I will try my best to alter the code generated by our CMS to speed up the site. Right now I am recompiling Apache with mod_deflate. That should speed things up even more, and I'll work on it till we get a passing grade.
Mike, also let me ask you something. Where are you finding out the total filesize of the site? Is that in firebug, or another plugin? -------------------- Thanks,
Jacob |
|
|
Aug 17 2008, 09:03 AM
Post
#3
|
|
![]() Co-Founder ![]() Posts: 2,664 Joined: 13-February 08 From: On the forum! |
I have installed mod_default and configured it to compress all data. However, I can't compress the content which we are getting from other servers. (e.g. BuySellAds, Jquery...etc.) I would blame most of these problems on IPB and Wordpress. It's going to be very difficult to alter their core, and I'm not even sure if it's possible as some of the files are encrypted.
-------------------- Thanks,
Jacob |
|
|
Aug 17 2008, 09:40 AM
Post
#4
|
|
|
Squeeze Machine ![]() Posts: 682 Joined: 15-February 08 From: UK |
Thanks Mike for letting me know about all this. I do agree that speed is a very important factor, and I will try my best to alter the code generated by our CMS to speed up the site. Right now I am recompiling Apache with mod_deflate. That should speed things up even more, and I'll work on it till we get a passing grade. That's helped already. As for a "passing grade" -- I wouldn't worry too much about your particular grade or score. It's more about improving the speed/score as much as you reasonably can. QUOTE Mike, also let me ask you something. Where are you finding out the total filesize of the site? Is that in firebug, or another plugin? Firefox web developer add-on --> Information --> View document size I have installed mod_default and configured it to compress all data. However, I can't compress the content which we are getting from other servers. (e.g. BuySellAds, Jquery...etc.) I would blame most of these problems on IPB and Wordpress. It's going to be very difficult to alter their core, and I'm not even sure if it's possible as some of the files are encrypted. Well, you can only alter what you can alter. But why are you getting content from the Jquery site? I use Jquery too, but I put the library files on my site (a "local" copy). You appear to have both "local" and remote copies of the same library. |
|
|
Aug 17 2008, 10:14 AM
Post
#5
|
|
|
Squeeze Machine ![]() Posts: 682 Joined: 15-February 08 From: UK |
Here's an example of compressing your images. The WebSqueeze text logo (logo.jpg) is 46 kb. I edited it as follows:
The result is a 20 kb file that is visually indistinguishable from the original 46 kb image (I believe it's pixel-for-pixel identical). Here you go: ![]() This took me about one minute. Most of the savings came from choosing the right file type; PNGcrush only shaved off a tiny amount. |
|
|
Aug 17 2008, 01:00 PM
Post
#6
|
|
![]() Co-Founder ![]() Posts: 3,095 Joined: 13-February 08 From: Pink House in USA |
I shaved a few kb's off of my two images but can't do anymore without losing clarity.
-------------------- |
|
|
Sep 23 2008, 06:37 AM
Post
#7
|
|
|
Squeeze Machine ![]() Posts: 682 Joined: 15-February 08 From: UK |
Just thought I'd say "well done" for the improvements.
You could still knock 25 kb off that "The Websqueeze" logo (removing 56% of the file size), however, without losing any image quality. |
|
|
Sep 23 2008, 07:13 AM
Post
#8
|
|
|
Rapid Squeezer ![]() Posts: 308 Joined: 15-February 08 From: Finland |
I'm risking myself here but I would say pointless. WS has never been slow. I don't care what score it gets, it's the people that are using it. Few kb's here and there don't make a difference. Not even few tens of kb's. When I was at school (almost 10 years ago), they tought us to optimize better and then we did count kb's but those days are over. Also combining files can lead to messier maintenance more often that actual noticable speed increase.
Ok, now you can start ranting me: 1, 2, 3, GO! -------------------- |
|
|
Sep 23 2008, 09:15 AM
Post
#9
|
|
|
Squeeze Machine ![]() Posts: 682 Joined: 15-February 08 From: UK |
You might think it's pointless, but that's probably from ignorance of some key background ideas.
First: response time is important. Even on broadband, most sites take a few seconds to load each page. Let's say your website typically takes 5 seconds to load a page; that might seem good, but what if it took 1 second, or even less than 1 second? Think how that might affect a user. Yahoo has found that reducing response time creates an increase in sales. Users like fast websites, and the faster the better. That is not to say that all websites should be bland pages of text. Modern websites often need to be rich in media and interaction. So although removing all images would speed up your website, your users probably would dislike that. But if you can speed up your website without sacrificing your content or design, and without imposing an unreasonable maintenance burden, then why not do it? Second: response time is extremely highly correlated with page weight; the correlation coefficient is something like 0.96. Third: response time is highly correlated with inverse Yslow score; the correlation coefficient is something like 0.76. So reducing your page weight and increasing your Yslow score are almost guaranteed to create real performance benefits. It's really about educating yourself. Many of these things are not difficult; they do not require much work. The real investment is in the time spent learning about them. Let's take the Websqueeze logo as an example. In a matter of seconds, I was able to reduce the file size from about 45 kb to about 20kb. That's a saving of 25 kb, or about 7% of the total page weight. 7% might not sound like much, but if you were able to do the same thing 10 times over, you'd reduce the page weight by 70%; and consequently, the page would load about 3 times faster than before (say, 2 seconds instead of 6 seconds). It took me seconds because I knew what to do. I could see that the image used relatively few colours, and this immediately made me think of converting it to a PNG-8. I also have PNGcrush set up, and it just takes a click to activate it. |
|
|
Sep 23 2008, 10:06 AM
Post
#10
|
|
![]() Don deluzione ![]() Posts: 1,175 Joined: 13-February 08 From: Canada eh? |
I'm risking myself here but I would say pointless. WS has never been slow. I don't care what score it gets, it's the people that are using it. Few kb's here and there don't make a difference. Not even few tens of kb's. When I was at school (almost 10 years ago), they tought us to optimize better and then we did count kb's but those days are over. Also combining files can lead to messier maintenance more often that actual noticable speed increase. Ok, now you can start ranting me: 1, 2, 3, GO! That's funny.. you're afraid Mike is going to prove you wrong, and he does it.. Loving it -------------------- |
|
|
Sep 23 2008, 11:38 AM
Post
#11
|
|
|
Rapid Squeezer ![]() Posts: 308 Joined: 15-February 08 From: Finland |
But I'm still not going to buy it
-------------------- |
|
|
Sep 23 2008, 12:13 PM
Post
#12
|
|
|
Squeeze Machine ![]() Posts: 682 Joined: 15-February 08 From: UK |
WS loads for me in 1-2 seconds. It really doesn't make me any difference if you can make it .5 seconds faster. Maybe it's just me. It doesn't make any difference for you, maybe. But for other people, it does. Not everyone is on broadband, and not all broadband is equally fast. Moreover, TWS loads fast for you because you're viewing it with a primed cache; what about visitors with an empty cache? Do we not care about them too? I recently made some measurements of TWS load speed as part of my Yslow article. On my broadband connection, it takes 4 seconds before any text loads (on an empty cache), and 10 seconds before the homepage has finished downloading. And on simulated dial-up, of course, it took much longer. I'm not saying that TWS is especially slow, but it's not especially fast either. I mention these ideas because TWS is the product of several expert web designers, whom I know are all interested in learning how to improve the quality of their creations. I know they are professionals, and I expect them to care about continuous professional development. They have already taken several of my suggestions on board, and as a result the site is now faster. You say TWS loads in 1 -- 2 seconds, and that you wouldn't care if it loaded 0.5 seconds faster. Well, a 0.5 second improvement would be 25 -- 50% of the load time. How do you think Yahoo would feel about that? If I could discover a secret method of cutting Yahoo's response time by 25 -- 50%, then Yahoo would pay me a fortune for it. Having said all that, there is always a balance to be struck. You can spend forever optimising your website, trying to squeeze that last 1% out of performance; it's important not to become so obsessed with performance that you never get around to making any content. It's up to you. You can choose to learn something that will make your websites better, or you can just shrug your shoulders and say, "I don't care." I chose the former. |
|
|
Sep 23 2008, 01:08 PM
Post
#13
|
|
|
Rapid Squeezer ![]() Posts: 308 Joined: 15-February 08 From: Finland |
I agree with you that some basic optimization is always in place, but I emphasize the word basic. I'm not going to spend hours squeezing 5kb off that logo filesize. I asked a friend to open WS and asked if it was slow. It wasn't and for sure he didn't have it cached. If the users don't see any problems, why should we?
And so that we don't agree on too many things I disagree with the frontend-backend ratio too -------------------- |
|
|
Sep 23 2008, 01:46 PM
Post
#14
|
|
|
Squeeze Machine ![]() Posts: 682 Joined: 15-February 08 From: UK |
I agree with you that some basic optimization is always in place, but I emphasize the word basic. I'm not going to spend hours squeezing 5kb off that logo filesize. Hours squeezing 5 kb? As I keep saying, it took me mere seconds to remove 25 kb. I consider that basic. QUOTE And so that we don't agree on too many things I disagree with the frontend-backend ratio too The back-end only becomes an issue if your web server is completely overloaded. This happened to me recently, because I was paying $2 a month for hosting; at that price, I'm not surprised they crowded too many sites onto the server. Other than this edge case, you really don't have a leg to stand on. http://www.youtube.com/watch?v=BTHvs3V8DBA In this video, Steve explains how his career had previously been as a backend engineer. When he began Yahoo's Exceptional Performance studies, he first decided to test where the response time is spent. Once he discovered that the backend was only 5%, the whole direction of the project changed to frontend optimisation. Can you provide a better argument than Steve Souders does? **edit** Actually, it might be that the backend is 10 -- 20%. I remember that number from somewhere too. Check the video for the numbers. |
|
|
Sep 23 2008, 04:45 PM
Post
#15
|
|
|
Squeeze Machine ![]() Posts: 682 Joined: 15-February 08 From: UK |
In Steve's definition, the "frontend" is everything that happens after the browser receives the .html file (or .php, or whatever). Okay, here are the numbers:
|
|
|
If you found The Web Squeeze to be helpful, please donate so we can keep this site FREE, FRESH, and fortified with Web Design & Development info!
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
6 | shammy2007 | 219 | 16th February 2008 - 05:47 PM Last post by: unitedcraig |
|||
![]() |
1 | edd | 227 | 27th March 2008 - 01:33 PM Last post by: edd |
|||
![]() |
17 | thewal | 538 | 19th June 2008 - 01:19 AM Last post by: Fancy |
|||
![]() |
9 | djeyewater | 421 | 2nd June 2008 - 04:27 AM Last post by: MikeHopley |
|||
![]() |
3 | mcdanielnc89 | 283 | 9th June 2008 - 03:15 PM Last post by: mcdanielnc89 |
|||







Aug 17 2008, 05:56 AM















