Is it possible to reduce Google Web Fonts to one request if I'm using multiple fonts?

后端 未结 4 1927
情深已故
情深已故 2021-01-18 03:37

I ran a speed test on my website and one of the suggestions was to reduce my external requests. I am using 3 Google Web Fonts, in effect 3 separate requests. Is it posible t

4条回答
  •  生来不讨喜
    2021-01-18 04:03

    You can avoid the three requests by embedding the fonts in data: URIs inside the CSS - at least in IE9+ and most modern browsers.

    note: they also work in IE8, but are limited to 32KB

    note2: obviously, you won't get the benefits of the Google CDN, since you'll have to serve the fonts inside your CSS...

提交回复
热议问题