qph9697
Forum Replies Created
-
Yes sure, I will do it manually.
Thank You.
But the font is style the same, it’s still “bold”.
Hey I found the reason why, this is bold.
I just checked that the contents for my body, I use Roboto 400 & Roboto 400 Italic.
But the autodetect is not able to detect Roboto 400 & 400 Italic.
Only 500 & 700 is only detected.
Available subsets:
Roboto
Opensans
Available fonts
Roboto italic 500
Roboto normal 700
Roboto italic 700
Opensans normal 700
Opensans italic 700So it isn’t detecting Robot 400 & 400 italic.
My theme is GeneratePress.Do you have any idea how can i get my 400 font weight?
Hi Thank you, for the info, it actually worked. The issue is gone from the speed test.
But the font is style the same, it’s still “bold”.
Also, does using the “swap” option adds any script in our main file.
Because instead of decreasing the load time, the load time has increased.And after checking my page speed report, I found that my “main-thread work” & “javascript execution time” has increased, after enabling swap.
I am attaching the screenshot of the reports, please have a look
Before Swap – https://ibb.co/1JG4gZ8
After Swap – https://ibb.co/rfz9dSn- This reply was modified 4 years, 10 months ago by qph9697.
After changing to ‘Swap’ you did regenerate the stylesheet?
No, I didn’t do it.
I will try just now.
But when I untick “remove google font”, it gets back to the original state, which I had designed it for.
Hi, I checked again and did some test, I found that the issues is not with the “remove google fonts”, but it happens when I switch my “font-display” option from “Auto” to “Swap”.
The “swap” is not working & I am still seeing this error
Ensure text remains visible during Webfont load
and plus,
my font-weights is also getting disturbed too, as mentioned in the previous post.For now, I have selected “Auto”, to maintain my font-styles.
Please help me with this.
Why am I still getting the same error in google page speed test & why is my font-weights changing?Please make sure that ‘Also optimize for logged in users?’ under OMGF’s advanced settings is checked, while debugging.
Yes, I will remember this.
But the issue is still the same,
If “remove google fonts” is ticked, everything is seen as “bold” in mobile.What should I do, so that my original font-weight is used?
This should be an easy switch.
Yes, I did the switch from “auto” to “swap”, but no effect, the issue is still there.
Did you purge your CSS cache after setting OMGF to “swap”?
I did “Purge All Cache” using w3tc plugin.
Just now I found another issue on mobile,
An issue with the “remove google fonts” option.When “remove google font” is TICKED, my complete font-weight changes on ONLY Mobile(No Change on Desktop).
But when I untick “remove google font”, it gets back to the original state, which I had designed it for.I have attached screenshots for your reference, please go through them,
When “remove google font” TICKED https://ibb.co/HD39v2P
When “remove google font” UNTICKED https://ibb.co/NjcHZWpWhy is this issue arising? Please help me with this, why is everything getting “bold” after TICKING “remove google font”.
My Page is https://questionpapershub.com/home/free-job-alert/
Remove italic styles – I’ve found italics works OK without them (at least on Chrome), but test to make sure
Remove font weights you don’t actually use – look through your CSS and leave only font-weight styles included in active styles
Uncheck “preload” for font styles you don’t need to preload, and only check it for fonts you use above the fold – again, check your CSS and use the code inspector to find the minimum setYes, I did remove the italics and unnecessary font styles and brought it down from 18 to 5 font styles with 2 subsets. And due to this, my site speed improved a lot.
But I wanted to remove the issue given below from the google page speed test,
Ensure text remains visible during Webfont load
as it is consuming a couple of seconds.
I did try the “swap” method but didn’t work as I had written before.
Also, you should check the browser caching settings on your site (in .htaccess) support font caching (and other static resources).
I looked into my .htaccess file and the font caching code is there.
I found this code in my .htaccess fileAddType application/vnd.ms-fontobject .eot AddType application/x-font-ttf .ttffo AddType application/x-font-opentype .otf AddType application/x-font-woff .woff AddType image/svg+xml .svg
This may not help the first-page load, but it will make subsequent page loads faster.
And I am testing the page speed for my “interior pages”.
If it helps, this is my page link
https://questionpapershub.com/home/free-job-alert/Yes, well, remove Google Fonts should be checked
Yes did this, and it decreased my load time & my requests too. Thank You for the info.
But,
I was trying to solve one more issue from my google page speed test,Ensure text remains visible during Webfont load
I searched for this & found that
changing the “Font-display option” in the advanced setting from “Auto” to “Swap” will do the trick.But there were no changes in my test, instead, it increased my load time.
Am I wrong somewhere?
Thank You once again & your plugin is wonderful, Sir.
So it was a server issue. Coincidentally the API responded fast enough now.
Yes, it might have been, but for info, this issue happened when I was using Cloudflare CDN. And yesterday only I changed back my nameserver to the default(GoDaddy), and today when I tried again, the error was gone. (For info, Cloudflare CDN increased load time, which affected my site SEO, which is why I changed to default)
do you have remove Google Fonts checked in the Advanced Settings?
The “remove google fonts” is unchecked in the advance settings tab.
For Info
I again tested my page, by preloading, downloading the font & generating the style sheet.
My GTMetrix report before was 3.1sec 51 Requests and after downloading fonts it is 5.0sec 64 Requests.- This reply was modified 4 years, 10 months ago by qph9697.
Hi,
I don’t know how, but the error was gone & now I am able to download the fonts and preload them. (due to this Google page speed doesn’t show the preload check for fonts)
But, there’s one issue, everything is working fine, but when I did my page speed check on GtMetrix and Google Page Speed, the loading time & the number of requests had increased.
I just downloaded the fonts, preloaded all styles, and generated the stylesheet.
(approx 10 requests are added when I activate the plugin)Can you please help me with this.
And one more thing, you all are wonderful and thank you for all your help.
- This reply was modified 4 years, 10 months ago by qph9697.
You could try setting this in your server’s PHP configuration: try setting default_socket_timeout to 10 seconds, for example.
Hi, I did what you said.
On google, I got to know that, this can be changed using either .htaaccess or php.ini file,
First I tried, .htaaccess file, the code I wrote was
php_value default_socket_timeout 10
in the .htaaccess fileSecond, I tried with php.ini, since there was no such file,
and according to this site – https://www.hostgator.com/help/article/what-is-php-ini
I created one, and the code I wrote was,<?php ini_set("default_socket_timeout", 10);
Both of them didn’t work, I am still getting the same issue.
<?php ini_set("default_socket_timeout", 10);
This code I found on
https://tideways.com/profiler/blog/using-http-client-timeouts-in-php and
https://stackoverflow.com/questions/11682207/can-i-change-default-socket-timeout-from-my-php-code- This reply was modified 4 years, 10 months ago by qph9697.
Yes Yes, thank you so much for all your replies, I will try googling, and will update you by tomorrow the results.
Thank You again.
- This reply was modified 4 years, 10 months ago by qph9697.
Hi thank you for the reply,
You could try setting this in your server’s PHP configuration: try setting default_socket_timeout to 10 seconds, for example.
Where could I find this?
I am using Cpanel.
Wait a minute, so you’re saying you want to preload ALL fonts? You shouldn’t do that. You should just preload the ones that are needed above the fold.
I didn’t knew about that, I was trying to preload all my fonts.
Then still, how many fonts are you trying to download? Perhaps it’s simply more than your server can process within a usual timespan. But still, I could try to make some optimizations.
I had 2 Subsets and 18 font styles & I was trying to preload all 18 font styles.
Here is the screenshot,
Screenshot 1 – https://ibb.co/WHHppSz
Screenshot 2 – https://ibb.co/WcJv7KzBut I tried both ways, I unticked all, and tried to download all the fonts that were gathered using Autodetect.
In both cases, it threw a cURL error.