Help us understand the problem. What is going on with this article?

Preconnect - High Performance Web 2015

More than 3 years have passed since last update.

preconnect

prebrowsing シリーズ、今回は preconnect.

TFO でも少し触れたが、これは dns-prefetch と似た感じで、
実際の TCP コネクションを先に貼っておくというもの。

HTTP に必要な DNS + 3WH
HTTPS に必要な DNS + 3WH + TLS

実装されてれば、これらを丸っと削減できる。これは結構でかい。

使いどころとしては、まだ実際の URL まではわからないが、ドメインレベルではわかっている場合に、先に繋いでおくのに利用できる。

もし接続するホストだけでなく URL までわかっているなら、 prefetch や prerender などを使うことができる。

API

API は resouce-hints に定義されている。
Link タグか、 Link ヘッダに書く。

<link rel="preconnect" href="//example.com">
<link rel="preconnect" href="//example.com" crossorigin>

link

see also

  • prebrowsing
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away