neverpanic / google-font-download

Locally host Google's web fonts
https://neverpanic.de/blog/2014/03/19/downloading-google-web-fonts-for-local-hosting/
BSD 2-Clause "Simplified" License
706 stars 72 forks source link

Order of font types in generated css is suboptimal #21

Closed dwt closed 6 years ago

dwt commented 6 years ago

Hi there,

while optimizing the generated css I noticed that by default (if all formats are requested) you generate .woff references before .woff2 in the css file.

From my testing, this leads compatible browsers (current Firefox, Safari, Chrome) to prefer the slightly larger .woff files over the more optimal .woff2.

Therefore I propose to switch the default order. (This is also something that FontAwesome does by the way, which I where I first noticed this).

What do you think?

dwt commented 6 years ago

Great! Thanks!