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
Post a Comment