resolved: window.onload=function() {func1();func2()}