30/07/2022 5:26 pm
Topic starter
Notifications
Clear all
Coding
1
Posts
2
Users
0
Reactions
1,067
Views
0
Hi,
the plugin I use does not have an option to preload fonts. is there a code to preload fonts with .htaccess ?
1 Answer
0
31/07/2022 2:47 am
You can preload fonts adding a link code in your website head tag. here is an example:
<link rel="preload" as="font" type="font/woff" href="/wp-content/themes/fonts/font.woff" crossorigin="anonymous">
Messing with .htaccess file may be risky if you don't know what you're doing.