Rollback999

Is there a Way to Determine if a Function Has Loaded?

Asked by Rollback999 2 years ago load function


Rommel Castro A
0
 
Yes!!! With if
function myFunction(){BLA BLA BLA BLA}

if(myFunction){MAKE SOMETHING}

by Rommel Castro A 2 years ago

Devone
0
 
There's no event that you're able to monitor, however, you can check for existence of a function on a regular basis:

If (typeof myfunction === 'function')
{
  myFunction();
}

by Devone 2 years ago

Answer this question

Is there a Way to Determine if a Function Has Loaded?

0 errors found:

 
0