Get started with fasy CDN

MIT licensed

Fasy is a minimal and fast library for creating debouncing and throttling functions.

Tags:
  • fp
  • functional programming
  • async

Stable version

Copied!

How to start using fasy CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with fasy CDN - cdnhub.io</title>
  <script src="https://cdn.cdnhub.io/fasy/9.0.2/umd/bundle.js"></script>
</head>
<body>
  <button id="button">Click me</button>

  <script>
    const button = document.getElementById('button');

    Fasy.debounce(button, 'click', 300).subscribe((event) => {
      console.log('Debounced click event:', event);
    });
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions