ozellikler / load-fonts-after-page-load

Load Fonts After Page Load

Home Page:https://www.ozellikleri.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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