サーバーから圧縮された google-font を取得する方法はありますか? Google のサーバーからフォントの CSS を取得すると、次のようになります。
/* cyrillic-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v16/ek4gzZ-GeXAPcSbHtCeQI_esZW2xOQ-xsNqO47m55DA.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v16/mErvLBYg_cXG3rLvUsKT_fesZW2xOQ-xsNqO47m55DA.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
.
.
.
etc
}
スタイルは圧縮されていない (コメントを削除し、空白を削除する) ため、PageSpeed Insights での評判が低くなります。つまり、SEO が少なくなり、Web ページでのパフォーマンスも低下します。@import は推奨されていないため、使用したくありません。