{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/588","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/588/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/588/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/588/events","html_url":"https://github.com/ampproject/amphtml/issues/588","id":111042757,"number":588,"title":"Feature request: Optimize font loading","user":{"login":"cramforce","id":89679,"avatar_url":"https://avatars.githubusercontent.com/u/89679?v=3","gravatar_id":"","url":"https://api.github.com/users/cramforce","html_url":"https://github.com/cramforce","followers_url":"https://api.github.com/users/cramforce/followers","following_url":"https://api.github.com/users/cramforce/following{/other_user}","gists_url":"https://api.github.com/users/cramforce/gists{/gist_id}","starred_url":"https://api.github.com/users/cramforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cramforce/subscriptions","organizations_url":"https://api.github.com/users/cramforce/orgs","repos_url":"https://api.github.com/users/cramforce/repos","events_url":"https://api.github.com/users/cramforce/events{/privacy}","received_events_url":"https://api.github.com/users/cramforce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-12T19:50:58Z","updated_at":"2015-10-12T19:55:22Z","closed_at":null,"body":"Currently all custom fonts included in AMP documents are subject to the browser's default loading behavior.\r\n\r\nSince there is only a single heuristic for all fonts, it cannot be good in all cases.\r\n\r\nThere are two primary types of fonts:\r\n\r\n1. Logo fonts. You'd never want FOUT (unstyle text) with these, but FOIT (invisible text) would be fine\r\n2. Content fonts. Here various different behaviors may be desirable:\r\n  - Timeout after which fallback font is shown\r\n  - FOUT\r\n  - I'd argue that FOIT is not good in this case.\r\n\r\nWhatever the solution is to achieve these goals, it should ideally not require a JavaScript download to initiate the font request."},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/147503319","html_url":"https://github.com/ampproject/amphtml/issues/588#issuecomment-147503319","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/588","id":147503319,"user":{"login":"cramforce","id":89679,"avatar_url":"https://avatars.githubusercontent.com/u/89679?v=3","gravatar_id":"","url":"https://api.github.com/users/cramforce","html_url":"https://github.com/cramforce","followers_url":"https://api.github.com/users/cramforce/followers","following_url":"https://api.github.com/users/cramforce/following{/other_user}","gists_url":"https://api.github.com/users/cramforce/gists{/gist_id}","starred_url":"https://api.github.com/users/cramforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cramforce/subscriptions","organizations_url":"https://api.github.com/users/cramforce/orgs","repos_url":"https://api.github.com/users/cramforce/repos","events_url":"https://api.github.com/users/cramforce/events{/privacy}","received_events_url":"https://api.github.com/users/cramforce/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T19:55:22Z","updated_at":"2015-10-12T19:55:22Z","body":"An extension to CSS for native support is under development\r\nhttps://tabatkins.github.io/specs/css-font-display/"}}