Graeme Hackston
07-29-2002, 11:23 PM
Do browsers read an entire function before taking actions the function describes? Specifically, will a function written like the example below show all of the divisions prior to hiding some of them if variables are true? If so, would this be noticeable on a slow connection?
function SomeName () {
show('div1','div2','div3','div4');
var a = AVariable
var b = BVariable
if (a) {
hide('div2');
}
if(b) {
hide('div4');
}
}
<edit>the reason I'm trying to write it like this is because it's an onload function and the variables are positons and heights etc. of the divisions</edit>
function SomeName () {
show('div1','div2','div3','div4');
var a = AVariable
var b = BVariable
if (a) {
hide('div2');
}
if(b) {
hide('div4');
}
}
<edit>the reason I'm trying to write it like this is because it's an onload function and the variables are positons and heights etc. of the divisions</edit>