amitmerchant1990 / amitmerchant-dot-com-comments

1 stars 0 forks source link

google-fonts-as-npm-packages/ #108

Open utterances-bot opened 5 months ago

utterances-bot commented 5 months ago

Installing Google Fonts as npm packages — Amit Merchant — A blog on PHP, JavaScript, and more

Google Fonts is a great resource for finding free fonts for your web projects. It has a wide variety of fonts to choose from. You include these fonts in your project using the tag or by using the @import rule in your CSS which points to the Google Fonts CDN.

https://www.amitmerchant.com/google-fonts-as-npm-packages/

jessegavin commented 5 months ago

How does this avoid an additional HTTP request? Is the font data somehow included inline in your HTML?

Doesn't it just change the url of the HTTP request for the font assets to your own server, instead of Google CDN?

amitmerchant1990 commented 5 months ago

@jessegavin I fixed the verbiage: "adds an extra HTTP request (to an external service)"

I hope this makes more sense now.