{"action":"opened","issue":{"url":"https://api.github.com/repos/jhabdas/fetch-inject/issues/17","repository_url":"https://api.github.com/repos/jhabdas/fetch-inject","labels_url":"https://api.github.com/repos/jhabdas/fetch-inject/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/jhabdas/fetch-inject/issues/17/comments","events_url":"https://api.github.com/repos/jhabdas/fetch-inject/issues/17/events","html_url":"https://github.com/jhabdas/fetch-inject/issues/17","id":225419404,"number":17,"title":"Fetch API overhead","user":{"login":"bjoe2k4","id":1668390,"avatar_url":"https://avatars1.githubusercontent.com/u/1668390?v=3","gravatar_id":"","url":"https://api.github.com/users/bjoe2k4","html_url":"https://github.com/bjoe2k4","followers_url":"https://api.github.com/users/bjoe2k4/followers","following_url":"https://api.github.com/users/bjoe2k4/following{/other_user}","gists_url":"https://api.github.com/users/bjoe2k4/gists{/gist_id}","starred_url":"https://api.github.com/users/bjoe2k4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjoe2k4/subscriptions","organizations_url":"https://api.github.com/users/bjoe2k4/orgs","repos_url":"https://api.github.com/users/bjoe2k4/repos","events_url":"https://api.github.com/users/bjoe2k4/events{/privacy}","received_events_url":"https://api.github.com/users/bjoe2k4/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-01T11:02:24Z","updated_at":"2017-05-01T11:02:24Z","closed_at":null,"body":"At least on current versions of Firefox and Chrome, a second connection is established when using the Fetch API, adding additional overhead (+SSL handshake) to `fetch-inject`. Suprisingly, the second connection is also established when using `h2`.Therefore, on a small sites with small number of js/css assets to be fetched, fetch-inject might be actually slower than traditional non-blocking methods to load js/css on the the first page load. Only after these two connections are established (e.g. page reload), `fetch-inject` performs considerably better.\r\n\r\nA corresponding note in the readme would be appreciated."}}
{"actor":{"display_login":"bjoe2k4"}}