{"action":"created","issue":{"url":"https://api.github.com/repos/bramstein/fontfaceobserver/issues/11","labels_url":"https://api.github.com/repos/bramstein/fontfaceobserver/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/bramstein/fontfaceobserver/issues/11/comments","events_url":"https://api.github.com/repos/bramstein/fontfaceobserver/issues/11/events","html_url":"https://github.com/bramstein/fontfaceobserver/issues/11","id":63376050,"number":11,"title":"Flash of invisible text","user":{"login":"rarkins","id":6311784,"avatar_url":"https://avatars.githubusercontent.com/u/6311784?v=3","gravatar_id":"","url":"https://api.github.com/users/rarkins","html_url":"https://github.com/rarkins","followers_url":"https://api.github.com/users/rarkins/followers","following_url":"https://api.github.com/users/rarkins/following{/other_user}","gists_url":"https://api.github.com/users/rarkins/gists{/gist_id}","starred_url":"https://api.github.com/users/rarkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rarkins/subscriptions","organizations_url":"https://api.github.com/users/rarkins/orgs","repos_url":"https://api.github.com/users/rarkins/repos","events_url":"https://api.github.com/users/rarkins/events{/privacy}","received_events_url":"https://api.github.com/users/rarkins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-21T08:09:03Z","updated_at":"2015-03-21T17:09:15Z","closed_at":null,"body":"I thought I'd just float this problem in case I'm not the only one who experienced this and someone else finds it in future (Closed or otherwise).\r\n\r\nI implemented @scottjehl's [suggestion](http://www.filamentgroup.com/lab/font-events.html) for using this code for eliminating the FOIT caused by CSS parsing. Unfortunately, I needed to roll this back as my FOIT time *increased*. I didn't really have the time/resources to find the root cause so don't mind if you close this unsolved.\r\n\r\nOn a fast connection, I'd see perhaps a half second FOIT, and when slowing down using Chrome devtools throttling it could be in the multiple seconds. Here's what I know, in case it helps someone else or someone else can help me:\r\n\r\n1. I was using two fonts\r\n2. I tried both the standalone (with promises) approach as well as our own Q-based promise\r\n3. The promises weren't firing immediately - they did seem to be waiting on *something*.\r\n- The promises fired a little before the fonts showed (visually) as finished in dev tools network view. Also it seemed like the time the FOIT turned into visible text did coincide with devtools showing the fonts being present\r\n- Problem was present on multiple devices and browsers\r\n- I tried using both `check()` as well as `check(null, 10000)` and neither made a difference\r\n\r\nOne suspicion was that this FOIT coincided with the async loading (using `loadCSS`) of my bootstrap CSS file. The FOIT certainly seemed to happen at around the same time. However I removed all custom font references from it and still the problem persisted.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bramstein/fontfaceobserver/issues/comments/84392990","html_url":"https://github.com/bramstein/fontfaceobserver/issues/11#issuecomment-84392990","issue_url":"https://api.github.com/repos/bramstein/fontfaceobserver/issues/11","id":84392990,"user":{"login":"bramstein","id":114871,"avatar_url":"https://avatars.githubusercontent.com/u/114871?v=3","gravatar_id":"","url":"https://api.github.com/users/bramstein","html_url":"https://github.com/bramstein","followers_url":"https://api.github.com/users/bramstein/followers","following_url":"https://api.github.com/users/bramstein/following{/other_user}","gists_url":"https://api.github.com/users/bramstein/gists{/gist_id}","starred_url":"https://api.github.com/users/bramstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bramstein/subscriptions","organizations_url":"https://api.github.com/users/bramstein/orgs","repos_url":"https://api.github.com/users/bramstein/repos","events_url":"https://api.github.com/users/bramstein/events{/privacy}","received_events_url":"https://api.github.com/users/bramstein/received_events","type":"User","site_admin":false},"created_at":"2015-03-21T17:09:15Z","updated_at":"2015-03-21T17:09:15Z","body":"That sounds worrisome. Do you happen to have the code (or a test case) somewhere?"}}