HTML 的 preconnect

在「Preconnect」這邊看到 Preconnect 這個功能,目前在 Mozilla FirefoxGoogle Chrome 以及 Opera 都有支援,用法也很簡單:

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

感覺如果要用的話,可以先送出 head 的部分,打 flush 讓瀏覽器先收到後再送出其他部分?不過對 MVC 架構來說好像變複雜了,不知道有什麼設計比較好...

另外一個是 Prerender,目前是 IE11+、Google Chrome 以及 Opera 有支援,看起來也頗有趣的...

This entry was posted in Browser, Computer, Firefox, GoogleChrome, IE, Murmuring, Opera, Software, WWW and tagged , , , , , , , , , , , . Bookmark the permalink.

One Response to HTML 的 preconnect

  1. Dennis says:

    The classic MVC is a anti-latency optimization pattern. It is well know as it delay css/js/font/images load.

    We need new a framework/controller, without re-write everything into an HTML5 app...

Leave a Reply

Your email address will not be published. Required fields are marked *