Hi
i want remove all google font and put in css to solve
page speed css block problem
http://fonts.googleapis.com/…:300,400,400italic,500,500italic,700,900
So i until 7.6 commented line in td_config.php like follow
/**
* the default fonts used by the theme. For a list of fonts ids @see td_fonts::$font_names_google_list
*/
//td_global::$default_google_fonts_list = array (
//’438′ => array(
//’css_style_id’ => ‘google_font_open_sans’,
//’url’ => td_global::$http_or_https . ‘://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,400,600,700|Roboto:500,400italic,700,900,500italic,400,300′
//),
/*’521’ => array(
‘css_style_id’ => ‘google_font_roboto’,
‘url’ => td_global::$http_or_https . ‘://fonts.googleapis.com/css?family=Roboto:500,400italic,700,900,500italic,400,300’
),*/
//);
With 7.7 version how can I do to make the same?
Thanks
Hello,
Unfortunately the fonts code was changed in the current version as now all google fonts are loaded in the same query and loaded on the same line as google recommends. Please update your theme and check the speed again as the code you mention could not be needed anymore as we have changed the fonts implementation.
Thank you!
Hi
Yes I have updated to 7.7 and checked.
In PageSpeed there is a warning blocking issues related to
http://fonts.googleapis.com/…:300,400,400italic,500,500italic,700,900.
The only way to eliminate the problem is to put googlefont in css
All I need you to tell me how to eliminate the query that call
http://fonts.googleapis.com…
Where is now, in js?
Thanks
Hello Bintmusic,
In the latest version of theme, it were made some changes regarding on loaded font styles and now, if you want to move to the footer section for your google fonts, you should edit the plugin file and add this code, like this -> https://www.screencast.com/t/9jzNsLOy
The code is here -> $this->move_style_to_footer_queue('google-fonts-style');
Thanks for your understanding!
Hi Catalin
I have added but did not seem to work…
Same warning on PageSpeed about blocking CSS resources
http://fonts.googleapis.com/…?family=Open+Sans:400,600|Roboto:400,500
Any suggestion?
Thanks
Hello Bintmusic,
Furthermore deeper investigations in this regard, the method which I gave you above should work fine for you because on my end and everything works as expected. I have tested on my localhost and also, for a live website test and it return the same good results, as you can see here -> https://www.screencast.com/t/rIdW25ibS71 -> https://www.screencast.com/t/3NhoROT0hp
Please try more carefully the above method because it should work. It is tested.
Hope this helps!
Thanks for your understanding!
Hello Bintmusic,
Please keep in mind that our Speed Booster plugin works as expected. I have inspected your source page, and the style of the theme and the other styles are moved at the footer section as you can see here -> https://www.screencast.com/t/QNW8qua4xK Unfortunately, we do not know why the Google interpret to be a render-blocking like this -> https://www.screencast.com/t/oEvRypZj, sorry! Please keep in mind that we do not have a time for deeper investigation in this regard, because all of these tests involve time-consuming and we have we cannot afford this, sorry! So, if you will find any problems which can cause this issue, please let us know, and we will try finding a solution in this regard if it will be possible.
Thank you for your understanding!