Live data from Hacker News

Google finally has a 404 page that isn't ugly

google.com

1–10 of 113 posts

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

#3
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!

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.

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

#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...

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

#7
post #6
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!

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).

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

#8
post #3
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!

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.

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

#9
post #6
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!

Does every browser support base64 encoded images embedded in css?

Almost every browser. Guess which ones don't.

(I'll give you a hint: It's MSIE 6 and 7.)

Source: http://en.wikipedia.org/wiki/Data_URI_scheme#Web_browser_sup...

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

#10
A part of me is sad about this. The old page functioned just fine and acted as a relic of the old Internet. I thought it was kind of cool how they left it alone, especially since it served it's purpose just fine without costing anything. Not that I'm denying it was ugly as all hell :)
Post reply on HN