Answers for "javascript check if script is loaded"

0

javascript check if script is loaded

if (typeof window.myCustomFlag == 'undefined') {
    //the flag was not found, so the code has not run
    $.getScript('<external JS>');
}
Posted by: Guest on August-11-2021

Code answers related to "javascript check if script is loaded"

Code answers related to "Javascript"

Browse Popular Code Answers by Language