News for hackers. Stuff that matters.
Re:Google Page Speed Online by nanexcool on Thursday March 31, 2011 @05:37PM (#2393824)
Nice tool, even if it makes some funny suggestions:

Minifying the following JavaScript resources could reduce their size by 1.1KiB (0% reduction). Minifying http://ajax.googleapis.com/.../jquery-ui.min.js could save 641B (0% reduction). Minifying http://ajax.googleapis.com/.../jquery.min.js could save 516B (0% reduction).

Re:Google Page Speed Online by ultrasaurus on Thursday March 31, 2011 @04:43PM (#2393604)
Rats, they got me:

The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources: http://www.google-analytics.com/ga.js (1 day)

Re:Google Page Speed Online by invisible on Friday April 01, 2011 @12:09AM (#2394891)
Heh...

The following publicly cacheable, compressible resources should have a "Vary: Accept-Encoding" header: http://partner.googleadservices.com/.../google_service.js

Re:Google Page Speed Online by JoelSutherland on Thursday March 31, 2011 @05:37PM (#2393823)
This is nice, but I find it much less usable than GTMetrix: http://www.gtmetrix.com which runs both Google Page Speed and Yahoo YSlow.

As an added bonus, GTMetrix also shows you the resource loading timeline.

Re:Google Page Speed Online by mike-cardwell on Thursday March 31, 2011 @05:53PM (#2393879)
I only got 97/100 for https://grepular.com/ because:

1.) I have 306 Bytes of inline JavaScript

2.) Minifying https://grepular.com/ more than it already is could save 794 Bytes, ie less than 1% of the page size.

3.) They want me to defer javascript until after page load. It's the last thing in the body anyway...

None of those are valid complaints. Where's my 100% damnit

Re:Google Page Speed Online by bmelton on Thursday March 31, 2011 @10:52PM (#2394741)
Google.com has 100. Facebook has a 99.

The best I've gotten to (on a real site) is a 98, but I'm quite pleased that I've got a few sites faster than pagespeed.googlelabs.com (95)

Re:Google Page Speed Online by kristopher on Thursday March 31, 2011 @10:05PM (#2394629)
Try entering the URL of the service itself[0] for a small easter-egg.

[0] http://pagespeed.googlelabs.com/

Re:Google Page Speed Online by prs on Thursday March 31, 2011 @04:16PM (#2393466)

  The page Hacker News got an overall Page Speed Score of 86 (out of 100).
Re:Google Page Speed Online by metachris on Friday April 01, 2011 @12:40AM (#2394954)
I actually don't mind HN taking a while to load. It't not that we have to fight for every new user by aggressively optimizing page load time. Btw. the recent changes to the HN backend already improved the average speed a lot.
Re:Google Page Speed Online by cpeterso on Thursday March 31, 2011 @08:22PM (#2394375)
Page Speed and YSlow say Hacker News should:

* Enable gzip compression. * Specify img dimensions. * Leverage browser caching: Add Expires headers; Configure entity tags (ETags). * Minify JavaScript

Re:Google Page Speed Online by pankratiev on Thursday March 31, 2011 @04:54PM (#2393657)
This suggestion from Google especially looks fun:

The following publicly cacheable, compressible resources should have a "Vary: Accept-Encoding" header:

    * http://www.google.com/buzz/api/button.js
However, it's a useful tool. It gives me useful suggestions for improving.

Anybody knows a simple tool to minify javascript?

Re:Google Page Speed Online by danthompson on Thursday March 31, 2011 @05:35PM (#2393816)
I often use the Closure Compiler at http://closure-compiler.appspot.com/ (online) and http://code.google.com/closure/compiler/ (offline)
Re:Google Page Speed Online by pankratiev on Thursday March 31, 2011 @06:45PM (#2394078)
Many thanks! I've just found a simple tutorial of how to use it in Python script: http://code.google.com/closure/compiler/docs/api-tutorial1.h...

So, I've written my own script, which minified seven js-files with total size 84.8 KB to one file with size 26.7 KB. Plus gzip and it will be very small.

Thanks again.

Re:Google Page Speed Online by tylerritchie on Thursday March 31, 2011 @07:20PM (#2394200)
There is also UglifyJS https://github.com/mishoo/UglifyJS which is build on Node.
Re:Google Page Speed Online by paulirish on Thursday March 31, 2011 @11:42PM (#2394834)
Here's an ugly GUI for Uglify: http://alexsexton.com/uglifui/
Re:Google Page Speed Online by bmelton on Thursday March 31, 2011 @10:56PM (#2394749)
I think I've been using the Google PageSpeed Plugin (Firefox only though) to minify JS, CSS and shrink PNGs.
Re:Google Page Speed Online by itsme on Thursday March 31, 2011 @05:28PM (#2393793)
Re:Google Page Speed Online by saidulislam on Thursday March 31, 2011 @04:14PM (#2393458)
I am surprised it doesn't catch or say anything about Flash
Re:Google Page Speed Online by th0ma5 on Thursday March 31, 2011 @04:10PM (#2393440)
"The page Google got an overall Page Speed Score of 100 (out of 100)." ... so they eat their own dog food, or was the homepage the pinnacle of excellence for the building this tool?
Re:Google Page Speed Online by MochaMocha on Thursday March 31, 2011 @04:45PM (#2393620)
I like how Google.com scores a 97, while Bing.com scores a 96 (ha!)
Re:Google Page Speed Online by beseku on Friday April 01, 2011 @02:41AM (#2395223)
Surely it would be in their best interest not to continually flag their own services as needing improvement.

Running http://www.beseku.com primarily indicates that they don't setup their Analytics or jQuery CDN properly.

Re:Google Page Speed Online by OOSeven on Friday April 01, 2011 @10:13AM (#2396290)
Is there a way to analyze which server (CDN) delivers the same content faster?
Re:Google Page Speed Online by rms on Thursday March 31, 2011 @06:16PM (#2393961)
I wonder what would happen to my 15% conversion rates if my shopping cart wasn't so crappy... I'm superstitious about switching though because of a fear that it might mess up our organic search traffic.
Re:Google Page Speed Online by ramidarigaz on Thursday March 31, 2011 @04:36PM (#2393570)
Hmmm... Contrary to a lot of recommendations I see here on HN (patio11 mainly), they seem to recommend enabling keep-alive.
Re:Google Page Speed Online by chc on Thursday March 31, 2011 @04:38PM (#2393579)
That's because patio11 is telling you how to keep your site alive under load, while that page is telling you how to decrease your page load times. They're contrary goals in this case. Keep-Alive makes things load faster, but it puts a cap on how many clients can connect to your server before it curls up and dies. It would be ideal if Apache would let you set a high-water limit for Keep-Alive connections after which it turns the feature off, but I don't know any way to do that. You can set how long they're kept alive, and you can set how many requests are allowed per Keep-Alive session, but not how many sessions are kept alive.
Re:Google Page Speed Online by piotrSikora on Friday April 01, 2011 @11:45AM (#2396676)
This is only true for servers that use separate thread/process for each request... It doesn't apply to event-driven servers (nginx, etc).

I'd even say that keep-alive is always your friend and the longer you can keep connection open the better... Of course there are always OS-level limits (open file descriptors, etc), so you should use LRU-queue on idle keep-alived connections to make sure that you won't run out of resources...

Re:Google Page Speed Online by btmorex on Friday April 01, 2011 @01:18AM (#2395057)
The best way to handle keepalives is to proxy everything through nginx, which can handle a huge number of connections with very little memory. Turn keepalives on in nginx, turn them off on your app server.
Re:Google Page Speed Online by 25thhour on Thursday March 31, 2011 @05:22PM (#2393773)
Umm the Chrome extension states it can access: "All data on your computer and the websites you visit".

Say what?

Re:Google Page Speed Online by 1880 on Thursday March 31, 2011 @05:29PM (#2393800)
It's very common. It's a limitation/feature of the Chrome API. If you want to make an extension that can be run on any page, this warning will appear.
Re:Google Page Speed Online by rchauhan on Thursday March 31, 2011 @06:48PM (#2394086)
Nice !!
Re:Google Page Speed Online by adolfoabegg on Friday April 01, 2011 @06:00AM (#2395652)
Re:Google Page Speed Online by gautaml on Thursday March 31, 2011 @04:20PM (#2393489)
Nice to see google cheating:

http://i.imgur.com/JxFKP.png

Re:Google Page Speed Online by abraham on Thursday March 31, 2011 @04:59PM (#2393674)
How is Google cheating?
Re:Google Page Speed Online by hokkos on Thursday March 31, 2011 @05:36PM (#2393821)
Because on http://pagespeed.googlelabs.com/ it says perfect score.
Re:Google Page Speed Online by abraham on Thursday March 31, 2011 @05:43PM (#2393846)
I just noticed that your screenshot isn't even of Page Speed. It is of the Audits tab in Chrome Developers Tools.
Re:Google Page Speed Online by hokkos on Thursday March 31, 2011 @05:51PM (#2393873)
It is not mine, but gautaml's one, and it use the independent tool of chrome that perform the same test. But when using the webservice it shows different results.
Re:Google Page Speed Online by abraham on Thursday March 31, 2011 @05:56PM (#2393886)
My bad. I wasn't paying attention to the usernames.

Are you sure they perform the same tests though? Why would Google build a Page Speed Chrome extension if the exact same algorithms were already built in? I suspect they are working towards the same goal but are approaching it differently.

Re:Google Page Speed Online by gautaml on Thursday March 31, 2011 @09:39PM (#2394578)
It likely is a different analyzing system but the web appears very much modeled after the audit tab.

I just found it funny that the web gave google.ca 100/100