Home Forums WoodMart support forum PageSpeed Insights – problem with woodmart-font.woff

PageSpeed Insights – problem with woodmart-font.woff

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #245605

    kazenaka
    Participant

    Hello! Some problem with woodmart-font.woff. Received such a recommendation from Google, see screenshot. I don’t use my own or external fonts. How to solve this problem, disable download?

    Attachments:
    You must be logged in to view attached files.
    #245969

    Artem Temos
    Keymaster

    Hello,

    You can add this <link tag to preload the font with the following PHP code. Place it to your functions.php file in the child theme and replace the URL with your woodmart-font file URL.

    add_action(
    	'wp_head',
    	function () {
    		echo '<link rel="preload" href="FILE_URL" as="style">';
    	}
    );

    Kind Regards

    #252702

    kazenaka
    Participant

    Thanks!))

    #252721

    Artem Temos
    Keymaster

    You are welcome!

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘PageSpeed Insights – problem with woodmart-font.woff’ is closed to new replies.