One of my clients would like to execute a script after the rest of the page content has fully loaded.

I suggested the following jquery function:

```
script>

$(window).load(function() {
$.getScript("http://jact.atdmt.com/jaction/JavaScriptTest");
});

</script>

```

Which calls the script above only after the rest of the page has loaded. However, the script above is also supposed to call another script after it executes. This looks something like the below:

```
function AT_tags(){
  try{var tags = new Array();
    var imgs = new Array();
    tags = [];
    for(var i=0; i<tags.length; i++)
    { imgs[i] = new Image();
      imgs[i].src = tags[i];}
    this.csk='Test';
  }catch(e){this.csk='Error';}}
var AT_csk = new AT_tags();
document.write('<s'+'cript language="JavaScript" src="http://jact.atdmt.com/jaction/KamuiTag/"></scr'+'ipt>');

```

The second script - that says jaction/KamuiTag - isn't executing when the first script is called this way.

Can someone please explain to me why a script within a script that executes using the above jquery function would not get called? 

Also, does anyone have any fixes or suggestions?

Thanks,