0

I'm working on a script that initiates an image carousel once the data is gathered via ajax, however I'm running into trouble with this as the images don't load in time before the function for the carousel is called. I've looked for small, easy solutions for this but I can't seem to find anything that doesn't involve a lot of extra code. I simply need this -

$('div img').preload(function() { 
   myFunction(); 
});

Both jQuery's on() and ready() doesn't seem to be able to solve it. Ideas / hints?

Bojangles
  • 96,145
  • 48
  • 166
  • 203
Staffan Estberg
  • 6,185
  • 15
  • 64
  • 102

0 Answers0