Google Chrome 59 之後的新功能:看 CSS 與 JS 的 Coverage

在「What's New In DevTools (Chrome 59)」這邊看到 Google Chrome 59 後所推出新的工具,可以看目前網頁的 CSS 與 JS 跑過的 coverage 比率。

像是這樣,總大小以及未使用的比率:

然後可以再直接看有哪些部份沒跑到:

可以拿來分析,降低使用者下載的量。不過真的要切的話好像不太好做...

Leave a Reply

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