# onboarding: Fix font loading frame delay \(\#37668\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/fe2aa3f4cb07d836249aa57891e6c391191d4d36)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: fe2aa3f4cb07d836249aa57891e6c391191d4d36

Requested commit: fe2aa3f4cb07d836249aa57891e6c391191d4d36

Commit: fe2aa3f4cb07d836249aa57891e6c391191d4d36

Tree: 08f553a3fb9d5d813ce18a168bf7588114ea5c15

Author: Ben Kunkle

Committer: GitHub

## Message

```
onboarding: Fix font loading frame delay (#37668)

Closes #ISSUE

Fixed an issue where the first frame of the `Editing` page in onboarding
would have a slight delay before rendering the first time it was
navigated to. This was caused by listing the OS fonts on the main
thread, blocking rendering. This PR fixes the issue by adding a new
method to the font family cache to prefill the cache on a background
thread.

Release Notes:

- N/A *or* Added/Fixed/Improved ...

---------

Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
Co-authored-by: Anthony Eid <hello@anthonyeid.me>
Co-authored-by: Anthony <anthony@zed.dev>
```

## Parents

- [10989c702ca708cf9eb9ef45126351e9bad944b3](https://git.cafe/gitcafe/zed/commit/10989c702ca708cf9eb9ef45126351e9bad944b3?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/fe2aa3f4cb07d836249aa57891e6c391191d4d36?format=markdown)
