Get started with portal CDN
Apache-2.0 licensed
Portal library embeds dynamic content, creating seamless user experience.
Tags:- ws
- websocket
- sse
- serversentevents
- comet
- streaming
- longpolling
Stable version
Copied!
How to start using portal CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with portal CDN - cdnhub.io</title>
<link rel="stylesheet" href="styles.css">
<script src="https://cdn.cdnhub.io/portal/1.1.1/portal.min.js"></script>
</head>
<body>
<button id="open-modal">Open Modal</button>
<div id="modal" style="display: none;">
<p>Hello, this is a modal dialog!</p>
</div>
<script src="app.js"></script>
</body>
</html>
Copied!
Copied!