-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get it to work with iFrameResizer #501
Comments
@daniser thanks a lot for your feedback. Actually I would expect that the following wouldn't work, as the <noscript class="loading-lazy">
<iframe id="container" src="..." loading="lazy"></iframe>
<script type="text/javascript">iFrameResize({}, '#container')</script>
</noscript> And I've followed up with the following code in a JSBin and that works fine, even with a resize after load by the <noscript class="loading-lazy">
<iframe id="container" src="..." loading="lazy" onload="iFrameResize({}, this)"></iframe>
</noscript> Could you please elaborate further whether this might be a browser specific problem? What's the environment you've tested with (and could you please test with the setup / link I've provided)? |
I have tab system which manipulates each tab visibility with
P.S. Very interesting On Firefox |
iFrameResizer works perfectly with native lazy loading functionality in supported browsers. But I can't get it to work along with this polyfill. I think it is due to
<noscript>
tag usage, but I'm not sure.I've tried following combinations to no avail:
The last one works when contents of the
<iframe>
is loaded instantly, but not with lazy loading:It'd be great if there was a way to register callback function which fires when
<iframe>
is actually loaded, like this:The text was updated successfully, but these errors were encountered: