开发者

Gmail CSS convention

开发者 https://www.devze.com 2023-02-02 04:08 出处:网络
I\'ve just looked at Gmail source, and I开发者_Go百科\'m surprised the way they name id / class name.

I've just looked at Gmail source, and I开发者_Go百科'm surprised the way they name id / class name.

This is just a curious what do them mean ?

Gmail CSS convention


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.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号