Get started with politespace CDN
MIT licensed
Politespace: library for polite user interaction during slow networks or busy servers.
Tags:- input
- readability
- space
Stable version
Copied!
How to start using politespace CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with politespace CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/politespace/1.0.2/politespace.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const politeSpace = new PoliteSpace({
// Configuration options go here
});
politeSpace.on('consent', () => {
// Your code to run when consent is granted
console.log('User has granted consent.');
});
politeSpace.consent('ads'); // Request consent for 'ads'
});
</script>
</head>
<body>
<!-- Your HTML content goes here -->
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!