Archived topic
Can't get rid of deleted font
7 replies · Started by Ben on August 10, 2021
Hello
I have added some Google fonts in additional CSS. After finding out the font has slowed the website, I deleted the font from additional CSS. But the PageSpeed Insights still shows the performance issues. Chrome DevTools shows that fonts CSS loaded in front-end as <link crossorigin="anonymous" rel='stylesheet' id='generate-fonts-css' href='//fonts.googleapis.com/css?family=Noto+Sans+SC' media='all' />
Is there anyway to remove the font CSS?
Thank you
Hi Ben,
Can you make sure all the options on Appearance > Customize > Typography doesn't use Noto sans? Some parts may still be using it.
If it's completely removed, can you check if your server has some sort of page caching? If it has, it may be serving a version of the page that still uses Noto Sans. Purging the cache should remove this and serve the latest version of the page. :D
Hi Elvin
Thank you for your quick reply. I have checked that no options in Typography are using Noto sans. I also purged caches by both WP Engine and WP rocket. The problem is still showing up.
Can you link us to a sample page in question? So we can inspect and gather clues.
You can use the private information text field to provide the details. :)
Thank you.
Ah I see,
Some of the contents of the page you've linked uses Noto sans. It's the GenerateBlocks Headline block. This requests for Noto sans.
Example element - https://share.getcloudapp.com/mXuKjkRR
I'm not exactly sure if there are any other blocks that requests noto sans on other pages. You'll have to check for them as well to be sure. :D
After making sure there's nothing else that requests this, make sure to purge WP Rocket again as it preloads the requested font files. :D
I edited the block and it works. Thank you for taking your time.
No problem. Glad to be of any help. :D