

- #Ensure text remains visible during webfont load wp rocket how to#
- #Ensure text remains visible during webfont load wp rocket install#
- #Ensure text remains visible during webfont load wp rocket update#
As always, some techniques can minimize the impact and find a middle ground that satisfies business and user experience goals. However, scripts are some of the most important tools you can have for tracking and targeting so do have significant business value. Most of the time, these are slow to load and impact user journeys so Google rightly identifies them as problematic and lowers the PageSpeed score. Once you have followed the steps, the error “Ensure text remains visinle during web font load” will be fixed.The most difficult PageSpeed warning developers will spend time on is Reduce the impact of third-party code, which is an issue that stems from JavaScript files placed on a site.
#Ensure text remains visible during webfont load wp rocket update#
css file and click on the update file button. Step 4: Copy and paste the code below at the bottom of the. Please contact the plugin creators, if you are not sure where to find the css file of the custom font. Please note the every plugin will have different paths for the CSS file. In our case the CSS file is located inside the assets>CSS>bsf-custom-font.css. Step 2: Select the plugin that is responsible for injecting custom fonts on your website. Step 1: From your WordPress dashboard, navigate to the Plugins and select Plugin File Editor

In this example, we are using a plugin developed by us named “Custom Font”.
#Ensure text remains visible during webfont load wp rocket how to#
Here is an example on how to edit the plugin code. When you are using a plugin to insert custom fonts to your website, you will need to either contact the plugin creators or you can edit the plugin code. This will ensure that the browser loads the deafult fonts during the time any custom fonts are being downloaded.
#Ensure text remains visible during webfont load wp rocket install#
Once you have downloaded and install the plugin, it will automatically search for any Google Fonts script and will append display=swap to the URL. Google Fontsįor Google fonts, you can simply use the plugin named “Swap Google Fonts Display” which can be downloaded from here. Once the browser downloads the custom fonts, it should then swap the default fonts with the custom one. To rectify this error, you will need to ensure that during the time that the browser loads your custom font, it should displaythe default fonts. When you test the speed of the website, this reaction of the browser is responsible for showing the error “Ensure text remains visible during web font loading”. This normally doesn’t occur if you are using the default fonts however, mostly occurs when you are using a custom font or using a plugin to insert the custom fonts. The customised font is immediately used after it has finished downloading. When a browser detects that a text has a custom font applied, it waits for the font to download. In this document, we will explain how to fix this error while using the Astra theme. When you analyze the website with PageSpeed Insight, you might encounter this error that “Ensure text remains visinle during web font load” from time to time.
