How could i load a script after the page it's fully loaded.

How could i load a script after the page it's fully loaded.

I am making an project what's require load scripts after the page it's fully loaded, so i use an append and thats work ok, when you make clicks, selects, or other events but when i try to execute some script in the load event theres comes an error.


theres my code of the page if anybody needs.


window.onload = function(){
var fncName = 'general';
chargeFnc('index', 'srcfnd', fncName);
$('#general_bd').ready(function(event){
general();
});
}
The page to see the code work it's:http://hidura.webfactional.com







Congrats