function formatBytesToKB(bytes) {
  if (bytes > 1024) {
    const formattedNum = new Intl.NumberFormat('en-US', {maximumFractionDigits: 1}).format(bytes / 1024);
    return `${formattedNum}KB`;
  }
  return `${bytes} bytes`;
}
Shows how to use Puppeteer's code coverage API to measure CSS/JS coverage across
different points of time during loading. Great for determining if a lazy loading strategy
is paying off or working correctly.

Install:
  npm i puppeteer chalk cli-table
Run:
  URL=https://example.com node code_coverage.js