免安裝行動網頁應用程式
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
關鍵轉譯路徑是指瀏覽器在開始繪製網頁之前所需的任何項目,包括 JavaScript、HTML、CSS、圖片。請務必在關鍵轉譯路徑上優先顯示素材資源,對於使用網路受限的裝置 (例如行動網路上的智慧型手機) 而言更是如此。Bryan 談到 Google 團隊如何完成 PageSpeed Insights 網站識別和決定素材資源的優先順序,從 20 秒的載入時間縮短至超過 1 秒!
簡報
- 排除禁止轉譯的 JavaScript 和 CSS。
- 優先顯示可見內容。
- 以非同步方式載入指令碼。
- 將初始檢視畫面在伺服器端轉譯為 HTML,並使用 JavaScript 來擴充。
- 請盡量減少算繪阻隔的 CSS,只放送顯示初始可視區域時所需的樣式,再放送其餘的樣式。
- 內嵌轉譯的 CSS 中內嵌大型資料 URI 會導致轉譯效能不理想,並且會封鎖圖片網址未封鎖的資源。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-25 (世界標準時間)。"],[],["The core content discusses optimizing the Critical Rendering Path (CRP) for faster page load times. Key actions include eliminating render-blocking JavaScript and CSS, prioritizing visible content, loading scripts asynchronously, and rendering the initial view server-side as HTML. Minimizing render-blocking CSS by delivering only initial viewport styles is crucial. Large data URIs inlined within blocking CSS negatively impacts performance, unlike image URLs. These steps were used to significantly improve the PageSpeed Insights website's load time.\n"]]