Optimize font loading (serve local fonts; preload some weights)#438
Optimize font loading (serve local fonts; preload some weights)#438SeanCassiere merged 2 commits intoTanStack:mainfrom
Conversation
✅ Deploy Preview for tanstack ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@demetris please run the prettier command ( |
|
@demetris thank you for this contribution! |
Thank you! :-) I will take AFTER measurements tomorrow. Where do you want me to put them (and the BEFORE ones)? Comment, updated description, or somewhere else? |
I think either updating the description or adding it as a comment would make sense 👍🏼 |
|
Measurements for the tanstack.com website taken using WebPageTest BEFORE THIS COMMIT
AFTER THIS COMMIT
LEGEND TTFB: Time to first byte |

Fixes #437
There are four Inter weights used above the fold, so I added preloading for 4 weights:
The changes were simple:
I also took measurements of two pages (homepage and TanStack Router) on WebPageTest, so that we can compare before and after.
Happy to answer any questions,
Cheers!