Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1342713
    Larry K
    Participant

    I have the latest of all things X.

    I added these 2 lines to get rid of pre dns ?

    in functions
    add_filter( ’emoji_svg_url’, ‘__return_false’ );
    remove_action( ‘wp_head’, ‘wp_resource_hints’, 2 );

    I still have this in my page:
    <link rel=’stylesheet’ id=’x-google-fonts-css’ href=’//fonts.googleapis.com/css’ type=’text/css’ media=’all’ />

    which is causing 404 error

    I’ve seen lots of people talk about various stuff…
    WHAT should I do to have a good, clean, fast site?

    thanks

    #1342837
    Lely
    Moderator

    Hello Larry,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    For performance, please check this article:https://community.theme.co/kb/performance/

    #1343482
    Larry K
    Participant
    This reply has been marked as private.
    #1344013
    Friech
    Moderator

    Hi There,

    Thanks for the credentials, please add this on your child theme’s functions.php file.

    add_action( 'wp_print_styles', 'deregister_google_fonts', 100 );
    function deregister_google_fonts() {
    wp_deregister_style( 'x-google-fonts' );
    }

    Let us know how it goes.

    Cheers!

    #1344197
    Larry K
    Participant

    so I added that, but no change.

    this is in the functions page:

    add_filter( ’emoji_svg_url’, ‘__return_false’ );
    remove_action( ‘wp_head’, ‘wp_resource_hints’, 2 );

    add_action( ‘wp_print_styles’, ‘deregister_google_fonts’, 100 );

    function deregister_google_fonts() {

    wp_deregister_style( ‘x-font-custom’ );
    wp_deregister_style( ‘x-font-standard’ );
    }

    ALSO… I’m still seeing the emoji js being used????
    how do I get rid of the crap that isn’t used, but slows down site?

    πŸ™‚
    thanks

    PS. look at the staging site on gtmetrix for example… look at the waterfall

    #1344245
    Dil
    Participant

    Hi,

    I have the same issue with the 404 as well! Same with the “how do I get rid of the crap that isn’t used, but slows down site?” . My site always fails pingdom test in couple areas even as a new site or established site with cdn/top caching tools/top image optimization and all….

    #1344246
    Dil
    Participant
    This reply has been marked as private.
    #1344287
    Dil
    Participant
    This reply has been marked as private.
    #1344462
    Friech
    Moderator

    Hi There,

    I updated my reply above with a tweaked code. Please try that instead.

    I’m not entirely certain what emoji you’re referring to, please clarify.


    @dil
    Please create a new thread as we did not resolve the TS issue yet, the longer threads get in the forum, they become more difficult to support as they tend to drift off topic.

    Thanks.

    #1345045
    Dil
    Participant

    Hi, ok, but your code seems to be same with no change?

    add_action( 'wp_print_styles', 'deregister_google_fonts', 100 );
    function deregister_google_fonts() {
    wp_deregister_style( 'x-google-fonts' );
    }
    #1345299
    Friech
    Moderator

    Hi There @dil,

    I did check the site, and I think it work. When I view-source the page, I don’t see this request anymore:

    <link rel='stylesheet' id='x-google-fonts-css' href='//fonts.googleapis.com/css' type='text/css' media='all' />

    Please clarify what changes you’re trying to do.

    Thanks.

    #1345388
    Dil
    Participant

    Hi Friech, the error I’m referring to is: http://cl.ly/140L253z1B3T

    #1345792
    Rue Nel
    Moderator

    Hello There,

    Thanks for providing the screenshot. After carefully investigating the issue, it turns out that the Google font “The Girl Next Door” doesn’t have any other font size. It should be only be the default size.

    It should only be used as

    
    @import url('https://fonts.googleapis.com/css?family=The+Girl+Next+Door');

    Hope this helps.

    #1349329
    Larry K
    Participant

    thanks… i have this in my child theme functions.php

    remove_action(‘wp_head’, ‘print_emoji_detection_script’, 7);
    remove_action(‘wp_print_styles’, ‘print_emoji_styles’);

    add_action( ‘wp_print_styles’, ‘deregister_google_fonts’, 100 );
    function deregister_google_fonts() {
    wp_deregister_style( ‘x-google-fonts’ );
    }

    I’m still seeing the fonts.googleapis.com error (look at a waterfall list on any speed test)

    thanks

    #1349330
    Larry K
    Participant

    interesting…
    look at webpagetest.org compared to gtmetric or pingdom

    note: I see the slowness of tag manager and some of the tracking or 3rd party scripts I have…
    but google fonts, etc… surely there must be a way I can fix that?

    πŸ™‚

  • <script> jQuery(function($){ $("#no-reply-1342713 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>