Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 1.1 KB

README.md

File metadata and controls

15 lines (8 loc) · 1.1 KB

Cabin client script

This is the client script for withcabin.com - Privacy-first, carbon-aware web analytics.

The script is accessible via CDN at https://scripts.withcabin.com/hello.js

Version number file size in bytes file size in bytes file size in bytes

yarn dev - run a dev server and visit localhost:8000 to test the script locally

yarn min - minify the script to /dist with terser

yarn deploy - deploy to CDN and invalidate cache

Note: This script is written with a tacit knowledge of terser compression and mangle. Some of the script may look unusual but it is written to be compressed as effectively as possible to reduce file size.