All articles

JavaScript files are blocking page rendering.

By default, references to external JavaScript files will block the page from rendering while they are fetched and executed. Often, these files can be loaded in a different manner, freeing up the page to visually render sooner.

More
The main thread was blocked

When files block the main thread, users are unable to interact with the page content. Typically, parsing and executing large JavaScript files, as well as running long JavaScript tasks can block the main thread and should be avoided. These files had high thread blocking times:

More
【Google-pagespeed】運用有效的快取政策提供靜態資產

延長快取生命週期可以加快使用者再次造訪網頁的速度。

More
如何避免 DOM 過大

大型 DOM 會增加記憶體用量、延長樣式運算的時間,並產生費工的版面配置重排。

More
如何將主要執行緒的工作降到最低

建議你縮短剖析、編譯及執行 JavaScript 所耗費的時間。提供較小的 JavaScript 酬載可能會有幫助。

More
如何排除禁止轉譯的資源

網頁的資源過多,因此妨礙了首次顯示畫面的時間。建議你先載入重要的內嵌 JavaScript/CSS,並延後載入不重要的 JavaScript/樣式。

More
如何減少無用的 JavaScript

減少無用的 JavaScript 並延遲載入指令碼 (等需要時才載入),即可減少網路活動消耗的流量。

More