rubynz / kiwi-ruby-2017

The conference website for Kiwi Ruby 2017
https://2017-kiwi.ruby.nz
MIT License
2 stars 2 forks source link

Improve PostCSS output #75

Closed ndorfin closed 5 years ago

ndorfin commented 7 years ago

By setting the browsers key in the postcss-cssnext options, we can cut down a fifth of the output CSS, because the browserList defaults provide fallbacks for IE8.

e.g. when in default mode:

padding-top: 80px;
padding-top: 8rem;

…after this change to: >5%, ie 11, last 2 versions, it becomes:

padding-top: 8rem;

rems have great support, even down to IE 9.

PostCSS seems pretty cool! I should use it more often :)

mermop commented 7 years ago

Google analytics shows we have a few IE 8 visitors - not sure the saving in CSS size is worth making their experience completely unworkable

ndorfin commented 7 years ago

Woah! Would you mind giving me read-only access to GA? (ndorfin@gmail.com) Would love to learn more about those users - maybe they're bots or behind the Great Firewall?

Whatever the situation, I'd recommend a tweaking of PostCSS output then. If we include IE8, it might be better than default.