Hiding the next button until all preloading is done | XM Community
Skip to main content

Hi! I've got a very image-heavy survey that we want to have preloaded before respondents begin. So, I've worked out that you can make the browser preload images with this code (repeated for each image) in a blank question on the first page:

But now I'm trying to hide the next button until all the images are loaded. I can hide the button with this in the header:

I've tried this (also in the header) to make the button visible again, but it goes visible before the preloading has finished:

What obvious mistakes have I made? Thank you!

I'm now trying this because I thought that perhaps jQuery's window load would be clearer, but it also doesn't work:


Could you share how you are displaying the videos once they have preloaded? Is it just an image tag linking to that source code? Unfortunately I can't help with solving the problem, but I'm actually trying to figure out what I think you've already cracked.


Very old topic but wanted to share some comment to preload images at the start and hide the next button until everything was loaded:

 


Leave a Reply