๐๐ผ๐ ๐๐ผ ๐ณ๐ถ๐ป๐ฑ โUNUSEDโ ๐๐๐ฉ๐๐ฆ๐๐ฅ๐๐ฃ๐ง ๐ฎ๐ป๐ฑ ๐๐ฆ๐ฆ ๐ฐ๐ผ๐ฑ๐ฒ ๐ผ๐ป ๐๐ผ๐๐ฟ ๐ฝ๐ฎ๐ด๐ฒ? ๐ค
You can find it using Chrome via โDev Toolsโ ๐
- Open dev tools (F12)
- Type: Ctrl + Shift + P
- Type: โCoverageโ and select โshow coverageโ from the result.
- New window with the โCoverageโ tab will be shown
- Click Icon โStart Instrumenting Coverage And Reload Pageโ
So it will reload the page and show the information in the table
with โUrlโ, โTypeโ, โUnusedBytesโ, โUsage Visualizationโ
๐จ๐๐ฎ๐ด๐ฒ ๐ฉ๐ถ๐๐๐ฎ๐น๐ถ๐๐ฎ๐๐ถ๐ผ๐ป:
- Red section of the bar is unused bytes
- Green section is used bytes.
๐ฆ๐ผ ๐๐ต๐ฎ๐ ๐๐ต๐ฒ ๐ป๐ฒ๐ ๐ ๐๐๐ฒ๐ฝ? ๐คจ
Get Niraj Shresthaโs stories inย yourย inbox
Join Medium for free to get updates fromย thisย writer.
Refactoring your codebase so that each page only ships the Javascript and CSS that it needs (this can be a tricky part ๐)
Do share your thoughts and other suggestions in the comments










