function isScriptAlreadyIncluded(src){
    var scripts = document.getElementsByTagName("script");
    console.log(scripts , " scripts");
    for(var i = 0; i < scripts.length; i++)
       if(scripts[i].getAttribute('src') == src){
         // buscar una manera de como no volver a cargar el archivo ya cargado
         console.log(" file is already loaded");
         return true
       }
       console.log(" file is not loaded");
    return false;
}
// Check if a Script is loaded. src = "https://cdn.ckeditor.com/4.7.0/standard/ckeditor.js"
Check if a Script is loaded.
Check if a Script is loaded .
function isScriptAlreadyIncluded(src){
    var scripts = document.getElementsByTagName("script");
    console.log(scripts , " scripts");
    for(var i = 0; i < scripts.length; i++)
       if(scripts[i].getAttribute('src') == src){
         console.log(" file is already loaded");
         return true
       }
       console.log(" file is not loaded");
    return false;
}
function isScriptAlreadyIncluded ( src ) { var scripts = document . getElementsByTagName ( "script" ) ; console . log ( scripts , " scripts" ) ; for ( var i = 0 ; i < scripts . length ; i ++ ) if ( scripts [ i ] . getAttribute ( 'src' ) == src ) { console . log ( " file is already loaded" ) ; return true } console . log ( " file is not loaded" ) ; return false ; }
Check if a Script is loaded.
Check if a Script is loaded .
// buscar una manera de como no volver a cargar el archivo ya cargado