top | item 2279949

(no title)

nathan82 | 15 years ago

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

discuss

order

rimantas|15 years ago

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.

tuxcanfly|15 years ago

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

stanleydrew|15 years ago

None of the html attribute values are quoted either.

cstuder|15 years ago

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

estel|15 years ago

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.

rodh|15 years ago

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

pbhjpbhj|15 years ago

I don't understand how it validates - I'd always understood that html, head, [title] and body were required for a complete document. Certainly the draft spec at http://www.w3.org/TR/html5/semantics.html#the-html-element-0 appears to confirm this ...

Fairplay to them though, they got a semantically and structurally deficient document to validate - it's like the IE6 of webpages ;0)

reedlaw|15 years ago

Does every browser support base64 encoded images embedded in css?

beaumartinez|15 years ago

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

kpreid|15 years ago

Base64 isn't exactly efficient. (Though it might be more efficient than an additional HTTP request. But if so, why aren't they using it for the homepage logo, say?) I wonder if they're using it as non-useless padding for stopping the IE-overrides-too-short-404s behavior.

visural|15 years ago

Base64 is ok when the response is gzipped