javascript - Wait until function is loaded -


How can I do jQuery testing when the Javascript function is fully loaded? I would like to use a GIF which is loading, while the JavaScript function loads and the function is completely full when it hides?

  $ (function () {$ ("# loadingGIF"). Show (); Waitformfunction ();}); Function WaitForFunction () {if (! $. Function (FUNCTION_TO_WAIT_ON_HERE)) {setTimeout (WaitForFunction, 100); Return; } Function_loaded (); } Function function_loaded () {$ ("# loadingGIF") Hide (); }  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -