Skip to content

sync #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Mar 17, 2018
Merged

sync #1

merged 13 commits into from
Mar 17, 2018

Conversation

aristath
Copy link
Owner

No description provided.

durchanek and others added 13 commits September 18, 2016 12:14
I had to add async attribute to stop Google Page Speed Insights complaining from render-blocking CSS being loaded.
Unfortunately, the native font load API in Safari 10 has two bugs that
cause the document.fonts.load and FontFace.prototype.load methods to
return promises that don't reliably get settled (i.e. either rejected or
resolved).

The bugs are described in more detail here:

https://bugs.webkit.org/show_bug.cgi?id=165037
https://bugs.webkit.org/show_bug.cgi?id=164902

Until patches for these bugs have landed in a stable version this pull
request will disable using the native font loading API on Safari 10. The
code only targets Safari 10 (all versions) because the patches will most
likely land before a new major version is released.
…afari10

Disable native font loading in Safari 10
Always use https for fonts.googleapis.com
Async attribute when using asynchronously
…ner after the loader promise has already resolved; to prevent Chrome DevTools from pausing. Fixes #362
Prevent Chrome DevTools pausing on Promise rejection when fonts load successfully
@aristath aristath merged commit ee2fbb0 into aristath:master Mar 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants