Get started with domready CDN

MIT licensed

DOMContentLoaded: HTML document fully loaded and parsed. No styles, images, or frames wait required.

Tags:
  • ender
  • domready
  • dom

Stable version

Copied!

How to start using domready CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with domready CDN - cdnhub.io</title>
    <script src="https://cdn.cdnhub.io/domready/1.0.8/ready.min.js"></script>
</head>
<body>
    <button id="myButton">Click me</button>
    <script>
        document.addEventListener('domready', function() {
            const myButton = document.getElementById('myButton');
            myButton.addEventListener('click', function() {
                alert('DOM is ready!');
            });
        });
    </script>
</body>
</html>
Copied!
Copied!

All versions