Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wait for fonts before
goTo()
and render()
resolve
Since fonts are downloaded asynchronously, we should await the `document.fonts.ready` promise since further network requests may not be available once the page has loads Similarly, some components are made visible after initialising JavaScript (or new elements created and inserted) so we should wait for additional font downloads to complete there too E.g. GDS Transport Light may have loaded already, but GDS Transport Bold may be requested on demand as required
- Loading branch information