<file-size> Web Component displays Minified & GZip sizes and (optional) GZThermal Image
<file-size src="..."></file-size>
<file-size gz src="..."></file-size>
Hold down alt
Key + click the thermal image to open the .js source file.
<script src="https://file-size.github.io/element.js">
OR
import {} from "https://file-size.github.io/element.js";
- 3rd party GZThermal API has a (unknown) traffic limit
- 3rd party API errors on files over 48-56 Kilobytes
- can't read files from other servers unless that server allows you to
CORS - Cross Origin Resource Sharing