Live data from Hacker News

Google finally has a 404 page that isn't ugly

google.com

11–20 of 113 posts

Re: Google finally has a 404 page that isn't ugly

#12
post #5
post #2

View the source. All the css is inlined, the images are base64 encoded, and there's no closing tag. That's one efficient 404!

One image is inline, the other is a conventional file. I wonder why. Oh, and it validates indeed: http://validator.w3.org/check?uri=http://www.google.com/nota...

Maybe that logo is used elsewhere, and there's a high likelihood for that logo to be in the user's cache.

Re: Google finally has a 404 page that isn't ugly

#13
post #5
post #2

View the source. All the css is inlined, the images are base64 encoded, and there's no closing tag. That's one efficient 404!

One image is inline, the other is a conventional file. I wonder why. Oh, and it validates indeed: http://validator.w3.org/check?uri=http://www.google.com/nota...

The other image, the logo, is probably generic enough that it's used elsewhere and a user is likely to have it cached. The other looks bespoke for this page, so wouldn't.

Re: Google finally has a 404 page that isn't ugly

#16
I liked the older one better - http://www.google.com/tisp/notfound.html

You might have typed the URL incorrectly, for instance. Or (less likely but certainly plausible) we might have coded the URL incorrectly. Or (far less plausible, but theoretically possible, depending on which ill-defined Grand Unifying Theory of physics one subscribes to), some random fluctuation in the space-time continuum might have produced a shatteringly brief but nonetheless real electromagnetic discombobulation which caused this error page to appear.

Re: Google finally has a 404 page that isn't ugly

#17
post #6

Earlier quoted context omitted.

Does every browser support base64 encoded images embedded in css?

I don't think the older ones do; however, I'm sure Google gives them a different 404 page (change your User-Agent to IE6 and see how different the search results HTML is).

We unfortunate users of IE6 get the new 404 page as well. I assume they just gave up on IE6 like most of the web-world has.

Re: Google finally has a 404 page that isn't ugly

#18
Given the size of Google, I wonder if there was a whole team tasked with this development. A 404 page for a company as big as Google is an awfully big responsibility for just one person :)

To be honest, I prefer the idea of a more intelligent 404 page. You'd think Google would have sufficient horsepower to make a good guess at what you might have been trying to find.

Re: Google finally has a 404 page that isn't ugly

#19
post #3

Earlier quoted context omitted.

Also: href=//www.google.com/ Title is funny :) I think they could drop margin:0; padding:0 from css, default values in browsers won't change much for this type of page anyway.

`//www.google.com` will automatically translate the url to http/https depending on the requested protocol.

Yup, that way of doing it is protocol-agnostic.

Re: Google finally has a 404 page that isn't ugly

#20
post #3

Earlier quoted context omitted.

Also: href=//www.google.com/ Title is funny :) I think they could drop margin:0; padding:0 from css, default values in browsers won't change much for this type of page anyway.

`//www.google.com` will automatically translate the url to http/https depending on the requested protocol.

is this officially accepted syntax? does it work in all browsers? (I'd really love both these answers to be yes so I can start doing this on my sites)
Post reply on HN