LoginSignup
0
0

More than 5 years have passed since last update.

Webフォント(Google Font)で必要な文字だけ読み込んで、少し読み込み速度を上げる

Posted at

例えば、サイトのタイトルだけにWebフォント(Google Font)を使用している場合など、
パラメータの「?family=<フォント名>」の後に「&text=<使用する文字>」をつけることで、
最小限のフォントだけを読み込むようになります。

<!-- Google Font -->
<link href="https://fonts.googleapis.com/css?family=Play&text=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" rel="stylesheet">
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0