Podrías verificar si los elementos han cargado antes de llamarlos, con algo como esto:
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>test</title>
<script>
var scrs=['algo.js','algo3.js','algo2.js'];
var cargados=0;
function adjs(url){
sc=document.createElement('script');
if(sc.addEventListener)
sc.addEventListener('load',function(){cargados++},false);
else
sc.onreadystatechange=function(){
if(sc.readyState=='complete' || sc.readyState=='loaded')cargados++;
}
sc.src=url;
document.getElementsByTagName('body')[0].appendChild(sc);
}
function loadScript(){
for(var i=0;i<scrs.length;i++){
adjs(scrs[i]);
}
}
window.onload=function(){
loadScript();
var int=setInterval(function(){if(scrs.length==cargados){alert('todos cargados');clearInterval(int)}},200)
}
</script>
</head>
<body>
</body>
</html>