Sitemap

๐—›๐—ผ๐˜„ ๐˜๐—ผ ๐—ณ๐—ถ๐—ป๐—ฑ โ€œUNUSEDโ€™ ๐—๐—”๐—ฉ๐—”๐—ฆ๐—–๐—ฅ๐—œ๐—ฃ๐—ง ๐—ฎ๐—ป๐—ฑ ๐—–๐—ฆ๐—ฆ ๐—ฐ๐—ผ๐—ฑ๐—ฒ ๐—ผ๐—ป ๐˜†๐—ผ๐˜‚๐—ฟ ๐—ฝ๐—ฎ๐—ด๐—ฒ? ๐Ÿค”

Nov 17, 2021

--

You can find it using Chrome via โ€œDev Toolsโ€ ๐Ÿ˜Š

  1. Open dev tools (F12)
  2. Type: Ctrl + Shift + P
  3. Type: โ€œCoverageโ€ and select โ€œshow coverageโ€ from the result.
  4. New window with the โ€œCoverageโ€ tab will be shown
  5. 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โ€

Press enter or click to view image in full size

๐—จ๐˜€๐—ฎ๐—ด๐—ฒ ๐—ฉ๐—ถ๐˜€๐˜‚๐—ฎ๐—น๐—ถ๐˜‡๐—ฎ๐˜๐—ถ๐—ผ๐—ป:

  1. Red section of the bar is unused bytes
  2. 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

--

--