Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update index.md
)master
branch of freeCodeCamp.Without this, some fonts either do not render initially or a fallback is rendered briefly.
Before, using 'Fast 3G' to slow down the load:
and after:
It's most noticeable in the search results, but also some bold and italic text is initially not rendered until the font loads.
I also tried out gatsby-plugin-preload-fonts, but it took about an hour to create the cache and puppeteer apparently did not try to search as the search specific fonts were not preloaded.
This could be improved if we know for sure that some fonts are not universal (Roboto Mono Italics perhaps) as they can be added only on the pages they appear.
Closes #37311