Skip to content

ozellikler/load-fonts-after-page-load

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Load Fonts After Page Load


The opening speed of the site is of great importance in Google algorithms. The size of the CSS code you use and the loading of the fonts you use with CSS have a great impact on this speed.

This little JavaScript code adds your font CSS files, which take a long time to load, to the page (into head tags) after the page is loaded. Thus, the opening speed of the site increases. You can see this on the PageSpeed Insights site.

Activate this code when the page is loaded, or activate it when the user scrolls down.

Enjoy.

Mesut - https://www.ozellikleri.net