6

I've just looked at Gmail source, and I'm surprised the way they name id / class name.

This is just a curious what do them mean ? alt text

6
  • 2
    Having a hard time reading those names... Commented Jan 4, 2011 at 17:59
  • @Klaus Open image in new tab (using Chrome) which should provide actual size or go directly to the image itself i.imgur.com/RR4LI.png Commented Jan 4, 2011 at 18:00
  • 1
    @Aaron ~ As long as Klaus has been around here, I think the joke was on the fact that it's been minified.
    – jcolebrand
    Commented Jan 4, 2011 at 18:01
  • @drachenstern Was a sizing assumption as the image at least for my eyes is not visible in the default context...;/ Commented Jan 4, 2011 at 18:02
  • @Aaron ~ It's not visible for anyone in the default context
    – jcolebrand
    Commented Jan 4, 2011 at 18:03

3 Answers 3

8

Gmail uses a minifier on it's CSS and javascript - that's why you get such bizarre names for classes, ids, javascript variables, etc.

If I'm not mistaken they likely use something like GWT for building the site, and then compile it down to the form you're seeing.

3
  • Presumably to save bandwidth?
    – Nathan S.
    Commented Jan 4, 2011 at 18:00
  • @Nathan - for bandwidth, and with the added benefit of obfuscation! Commented Jan 4, 2011 at 18:01
  • 4
    I doubt it was for intentional obfuscation.
    – jcolebrand
    Commented Jan 4, 2011 at 18:02
4

Knowing how much the Google guys care about caching, bandwidth and such, I suppose these names are just short random IDs generated by an automated CSS minifier.

1

The class names by themselves have no meaning in English. They have quite a bit of meaning to the browser, since they are tied to CSS declarations.

They also seem to indicate that Gmail is using a grid based system and a CSS minifier, for what that is worth.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.