Valuecom Posted September 26 Share Posted September 26 Hi , i want a preload with counter like the example below, but i want it to count when the iframe video will load. Is there any method like imagesLoaded but for iframe? This is a Vimeo iframe, with autoplay, at the top of the page, so I often have a blank page until the video loads. See the Pen Zeyeoa by mulegoat (@mulegoat) on CodePen Link to comment Share on other sites More sharing options...
Solution akapowl Posted September 26 Solution Share Posted September 26 Hello @Valuecom - welcome to the GSAP forum. We actually like to keep the forum focussed on GSAP specific questions. I personally am not aware of any helping library for handling iFrame loading states. Since this isn't GSAP related, I just asked Google about this and here are some answers I got. https://stackoverflow.com/questions/29233928/iframe-onload-javascript-event https://stackoverflow.com/questions/3142837/capture-iframe-load-complete-event https://stackoverflow.com/questions/60461930/checking-if-iframe-contents-are-loaded 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now