• Resolved pingsunday

    (@pingsunday)


    I always have the problem with the “generatepress.woff2”.
    I wonder if Tom can give me a simple solution.
    Here is the snapshot, that this small font size is loaded in 1.2 second.

    View post on imgur.com

    Thank you for your help. Please.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Tom

    (@edge22)

    Hi there,

    Sorry for not getting back to you sooner! I wasn’t notified of this topic.

    That file is less than 1kb in size, so for it to take that long to load is crazy. I just ran your site through a Pingdom and GTMetrix test, and didn’t notice any issues.

    Did you get this fixed?

    Thread Starter pingsunday

    (@pingsunday)

    Hi Tom,

    I’ve used Lighthouse (Google speed test), and GiftofSpeed. Both has confirmed that the font size is loaded slowly.

    Please take a look here:

    https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fpingsunday.com

    I’ve tried to add these codes in the theme-function.php, does it help?

    / Remove Google Font, Generatepress font, and Font Awsome
    add_action( 'wp_enqueue_scripts','tu_remove_google_fonts', 10 );
    function tu_remove_google_fonts() {
        wp_dequeue_style( 'generate-fonts' );
    	wp_dequeue_style( 'font-awesome' );
    }
    Theme Author Tom

    (@edge22)

    GeneratePress doesn’t add Font Awesome anymore, and Google Fonts are only loaded if you choose one inside the Typography section.

    The font you’re seeing is the font that handles default icons in the theme. At this time, it’s not removable, mainly because it’s a tiny file.

    For example, it’s loading on our test site with no issues: https://developers.google.com/speed/pagespeed/insights/?url=speedtest.generatepress.com

    I just ran your site through the test and I’m not seeing anything saying that font file is the cause of the slow load time? It tells you potential savings, but that’s just a guess on their part.

    It looks like the main issue your site is having is due to javascript. Have you tested with your ads removed? If you open “Reduce JavaScript execution time”, you’ll see a lot of it is pageads as well as some other javascript resources.

    Thread Starter pingsunday

    (@pingsunday)

    thank you Tom.
    So I will remove the dequeue code. Yes, I will try to reduce the JS code on my site.
    The problem can be marked as solved.
    Thanks

    Theme Author Tom

    (@edge22)

    No problem! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Very slow loading font’ is closed to new replies.