3 ms·
Are there any findings about whether such godawful class names affect rendering performance? I mean just matching strings such as this one: com-google-api-expl
by PavlovsCat 11y ago
Are there any findings about whether such godawful class names affect rendering performance? I mean just matching strings such as this one:
com-google-api-explorer-client-history-EmbeddedHistoryItemView_HistoryItemUiBinderImpl_GenCss_style-showHideHeaders
It's generally really hard for me to take HTML advice from google seriously, their page sources at best look mediocre, and at worst they make my eyes bleed. How can code so complicated lead to such bland looking pages? I know I'm kind of being snarky, but I can't help it. Just look at the source of that page and the linked stylesheets, look at google.com, heck, if you can find me just one elegant page I'll be grateful, because to this day I haven't seen a single one.
- sanxiyn 11y agoClass names are interned (see https://en.wikipedia.org/wiki/String_interning https://en.wikipedia.org/wiki/String_interning), so string length does not affect rendering performance.
- laurent123456 11y agoAlso, since they are talking about optimization, I wonder why they make embedded fonts a requirement to view their plain-text page. I disable loading of fonts because it's useless and often slows everything down, and this is how their page look without these fonts: http://i.imgur.com/oDO8gRt.png http://i.imgur.com/oDO8gRt.png
- seanwilson 11y agoI imagine the vast majority of web users have font loading enabled so they optimised and tested for that.
- oneeyedpigeon 11y agoSo, ... screw the minority? Seriously, one of the benefits of the web stack is that it makes it very easy to cater for a wide variety of capabilities, rather than resorting to "Best viewed with Internet Explorer 5"-type behaviour.
- seanwilson 11y agoWhat browser doesn't support fonts? If web developers had to support every permutation of turning off cookies, fonts, images, JavaScript, stylesheets etc. you'd never get anything done.
- oneeyedpigeon 11y agolaurent123456's doesn't. And I wouldn't be surprised if there weren't countless mobile phones, console browsers, etc. that didn't. You don't need to support every permutation of each technology; provide base functionality, and enhance it using each, if it's available.
- theinternetman 11y ago> How can code so complicated lead to such bland looking pages? That also perform utterly atrociously, compare modern Google Maps to classic Google Maps. The performance difference is night and day in the favour of the old school tiles version.