Daily Notes 3:preload、prefetch、preconnect 的差異及用法
今天公司的前輩介紹了三種使用在 link 標籤上的效能優化的方法,可以改變瀏覽器下載資源的優先度--也就是先讓網站會用到的檔案「偷跑」,以免網站內容過多時會卡頓、loading 太久,以下簡單將重點稍微整理。 <div style="width:100%;height:0;padding-bottom:69%;position:relative;"><iframe src="https://giphy.com/embed/lZfieM3rRK5ZTMOnNd" width="100%" height="100%" style="position:absolute" frameBorder="0" class="giphy-embed" allowFullScreen></iframe></div> 載入順序 一般來說,瀏覽器會先讀取 HTML