Do you know how to optimize loading web fonts?

Do you know how to optimize loading web fonts?
Just as the title!

The commonly used font-family loads the browser's built-in fonts, but if the new tag @font-face in CSS3 is used to load TTF fonts, the traffic generated will be very large. Especially for Chinese fonts.

Nowadays, fonts are becoming more and more diverse. How can we load fonts smoothly?

Today I downloaded several Chinese fonts from China Fonts http://font.chinaz.com/, put them on my blog and tried to load them, but found that they loaded very slowly.

A Chinese TTF font is more than 8M. I wonder when it will take to load and display?

Then I was wondering how this Chinese font website managed to load so many fonts. Although some of the fonts are pictures, it also provides the function of previewing the font you entered.

Any idea what the solution is? If you know, please reply.

<<:  A brief discussion on tags in HTML

>>:  Pure CSS code to achieve drag effect

Recommend

A brief introduction to JavaScript arrays

Table of contents Introduction to Arrays Array li...

Tomcat configuration and how to start it in Eclipse

Table of contents How to install and configure To...

Example code for using @media in CSS3 to achieve web page adaptation

Nowadays, the screen resolution of computer monit...

Vue implements calling PC camera to take photos in real time

Vue calls the PC camera to take pictures in real ...

JavaScript dynamically generates a table with row deletion function

This article example shares the specific code of ...

Detailed steps to install MySQL 5.6 X64 version under Linux

environment: 1. CentOS6.5 X64 2.mysql-5.6.34-linu...

MySQL multi-instance installation boot auto-start service configuration process

1.MySQL multiple instances MySQL multi-instance m...

How to avoid duplication of data when inserting in MySql batch

Table of contents Preface 1. insert ignore into 2...

Application and implementation of data cache mechanism for small programs

Mini Program Data Cache Related Knowledge Data ca...

Installation tutorial of mysql 8.0.11 compressed version under win10

This article shares the installation tutorial of ...

Problems encountered in the execution order of AND and OR in SQL statements

question I encountered a problem when writing dat...

Detailed explanation of how to configure Nginx web server sample code

Overview Today we will mainly share how to config...