cute

Minifier-friendly JavaScript built for speed and power.

Usage no npm install needed!

<script type="module">
  import cute from 'https://cdn.skypack.dev/cute';
</script>

README

Cute

Chat Version Downloads Build Coverage Support

Cute is "JavaScript You Minify", meaning Cute scripts can be concatenated with your application code and minfied together. Functions you use will remain intact, and functions you don't use will minify out. The end result is that browsers will download and run your code quickly, enabling the fastest experiences possible.

Understanding Latency

Browser experiences are affected by three main causes of latency, which can roughly be categorized as hops, size and speed.

  • Hops to servers and back can be very latent, depending on distance to servers and number of subsequent hops.
  • Size of downloads affect bandwidth usage, and large assets can cause long delays.
  • Speed of browser rendering is affected by how fast a CPU is and how much work it needs to do.

The relationship between Moore's Law and Nielsen's Law means CPU speeds can be expected to increase at a greater rate than bandwidth, so over time, size becomes more important than speed. Additionally, caching is a common solution for mitigating latency from hops, and small sizes are better for caching, both on CDNs (saving cost) and browsers (saving space).

More on Cute...