Get started with iframe-resizer CDN
MIT licensed
Iframe-resizer is a lightweight library that dynamically adjusts the height of an iframe to match its content.
Tags:- Cross
- Domain
- Cross-Domain
- iFrame
- Resizing
- Resizer
- postMessage
- content
- resize
- height
- auto-height
- iframe-auto-height
- height-iframe
- width
- mutationObserver
- RWD
- responsive
- responsive-iframe
- jquery-plugin
Stable version
Copied!
How to start using iframe-resizer CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with iframe-resizer CDN - cdnhub.io</title>
<style>
#content {
width: 100%;
height: 500px;
border: 1px solid black;
}
</style>
</head>
<body>
<div id="content">
<iframe src="https://example.com" sandbox="allow-scripts allow-same-origin" frameborder="0" loading="lazy" allowfullscreen="true" id="example-iframe" scrolling="no" seamless="seamless" onload="this.height = '100%'; iframeResizer.init(this)"></iframe>
</div>
<script src="https://cdn.cdnhub.io/iframe-resizer/4.3.9/iframeResizer.min.js"></script>
<script>
if (!window.iframeResizer) {
throw new Error('Iframe Resizer library failed to load.');
}
</script>
</body>
</html>
All versions
0.1.0
0.2.0
1.0.0
1.0.1
1.0.3
1.1.0
1.1.1
1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
1.2.5
1.3.0
1.3.2
1.3.3
1.3.4
1.3.5
1.3.6
1.3.7
1.4.0
1.4.1
1.4.2
1.4.3
1.4.4
2.0.0
2.0.0-pre
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.3.1
2.3.2
2.4.0
2.4.1
2.4.2
2.4.3
2.4.4
2.4.5
2.4.6
2.4.7
2.4.8
2.5.0
2.5.1
2.5.2
2.6.0
2.6.1
2.6.2
2.6.3
2.6.4
2.6.5
2.7.0
2.7.1
2.8.0
2.8.1
2.8.10
2.8.2
2.8.3
2.8.4
2.8.5
2.8.6
2.8.7
2.8.8
2.8.9
3.0.0
3.1.0
3.1.1
3.2.0
3.2.1
3.3.0
3.3.1
3.3.2
3.3.3
3.4.0
3.4.1
3.4.2
3.5.0
3.5.1
3.5.10
3.5.11
3.5.12
3.5.13
3.5.14
3.5.15
3.5.16
3.5.2
3.5.3
3.5.4
3.5.5
3.5.6
3.5.7
3.5.8
3.5.9
3.6.0
3.6.1
3.6.2
3.6.3
3.6.4
3.6.5
3.6.6
4.0.0
4.0.1
4.0.2
4.0.3
4.0.4
4.1.0
4.1.1
4.2.0
4.2.1
4.2.10
4.2.11
4.2.2
4.2.3
4.2.4
4.2.5
4.2.6
4.2.8
4.2.9
4.3.1
4.3.10
4.3.11
4.3.2
4.3.3
4.3.4
4.3.5
4.3.6
4.3.7
4.3.8
4.3.9
4.4.4
5.0.0
5.0.0-rc.3
5.0.1
5.0.2
5.1.0
5.1.1
5.1.2
5.1.3
5.1.4
5.1.5
5.2.0
5.2.1
5.2.2
5.2.3
5.2.4
5.2.5
5.2.6
5.3.0
5.3.1
*** 5.3.2