- #1
Mattara
- 348
- 1
I have a certain service on an ISP. I am having a few minor "hang" problems on page load.
Im assuming this is because both have "onload" calls, as do other modifications I'm using, and this "hang" is cause by the codes all loading at once?
I want to set the different mods to load in sequence instead by using a delay. E.G.
<BODY onLoad="javascript:alert('First Action');alert('Second Action');">
but I am not sure how to go about it. If I listed the "onload" function of each modification I use, could somebody who knows what they are doing work out a code like above to specification for me and tell me where to put it?
(i presume css inline/ head tags equivalent?)
I.E
1 load "item one"
2 load "item two"
3 load "some other thing"
maybe something like this in an external js (but put where?)
CODEfunction start() {
function1();
function2();
function3();
}
window.onload = start;
Brainpower appreciated,
Im assuming this is because both have "onload" calls, as do other modifications I'm using, and this "hang" is cause by the codes all loading at once?
I want to set the different mods to load in sequence instead by using a delay. E.G.
<BODY onLoad="javascript:alert('First Action');alert('Second Action');">
but I am not sure how to go about it. If I listed the "onload" function of each modification I use, could somebody who knows what they are doing work out a code like above to specification for me and tell me where to put it?
(i presume css inline/ head tags equivalent?)
I.E
1 load "item one"
2 load "item two"
3 load "some other thing"
maybe something like this in an external js (but put where?)
CODEfunction start() {
function1();
function2();
function3();
}
window.onload = start;
Brainpower appreciated,