Tagged: x
-
AuthorPosts
-
January 24, 2017 at 1:49 am #1342713
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
January 24, 2017 at 4:07 am #1342837Hello 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/
January 24, 2017 at 12:18 pm #1343482This reply has been marked as private.January 24, 2017 at 6:50 pm #1344013Hi 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!
January 24, 2017 at 10:06 pm #1344197so 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?π
thanksPS. look at the staging site on gtmetrix for example… look at the waterfall
January 24, 2017 at 11:26 pm #1344245Hi,
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….
January 24, 2017 at 11:26 pm #1344246This reply has been marked as private.January 25, 2017 at 12:03 am #1344287This reply has been marked as private.January 25, 2017 at 4:21 am #1344462Hi 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.
January 25, 2017 at 12:18 pm #1345045Hi, 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' ); }
January 25, 2017 at 3:34 pm #1345299Hi 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.
January 25, 2017 at 4:44 pm #1345388Hi Friech, the error I’m referring to is: http://cl.ly/140L253z1B3T
January 25, 2017 at 10:17 pm #1345792Hello 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.
January 29, 2017 at 12:21 am #1349329thanks… 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
January 29, 2017 at 12:26 am #1349330interesting…
look at webpagetest.org compared to gtmetric or pingdomnote: 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?π
-
AuthorPosts