from Hacker News

Google.com source code (not simple anymore)

by rk1987 on 3/4/15, 2:30 PM with 10 comments

view-source:https://www.google.com/

Maybe it's just me, but realized google.com source code (HTML) used to be very simple but it looks very different now.

Try navigating HTML elements using dev tools.

  • by carrja99 on 3/4/15, 3:19 PM

    And here I thought this was a post about the google.com source code being leaked. :-)

    I'd imagine that the rendered HTML is probably produced by a legacy system that stitches together a lot of different templates, some maybe even unintentionally.

  • by bstackd on 3/4/15, 2:41 PM

    No surprise, they have to compress like mad and avoid superfluous http requests. That sort of optimisation will never look fancy
  • by 5h on 3/4/15, 2:59 PM

    I wonder why there are multiple style elements, in div#footcnt there are 2 right next to each other, they could have saved a whole "</style><style>" there, think of the bandwidth!

    /s

  • by mdturnerphys on 3/4/15, 3:35 PM

  • by egonschiele on 3/4/15, 3:16 PM

    I wonder if the giant script was an external file, and now it's being splat on the page?
  • by gotothrowaway on 3/4/15, 3:20 PM

    The other day I noticed that they're inlining image data in the src attribute instead of pointing at an external URL. Really taking things to the next level all-around - I wonder when that will become the norm instead of css image sprites.
  • by philippnagel on 3/4/15, 3:34 PM

    Click-bait ;)
  • by karangoeluw on 3/4/15, 3:18 PM

    I don't get it, what's the point of this post? How is it adding any new knowledge to the readers?