Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Then there’s users begging Google to allow them to use more than 50kb of CSS. Yes, most site’s CSS is bloated. But 50kb is an absurdly small, arbitrary limit. Stylesheets these days handle resets for normalising behaviour between browsers, grid systems so you can lay things out without resorting to murder-suicide, and responsive queries so that your site looks great on mobile and desktop (and tablet and landscape and Android and iPhone.) These essential components will take you a decent way to to the 50kb already.

As far as I know, the 50KB limit is per page. I can't see why a typical single page should require that much CSS where the CSS included is actively used on that page. If you're going to include e.g. the CSS for every Bootstrap component on every page you're easily going to go over the limit but the whole point of the limit is to discourage you from doing that.

The OP article should only require a modest amount of CSS I think, same for most pages. People here hate on AMP a lot, but "avoid excessive CSS" is a good guideline in my opinion.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: