Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript var

Status
Not open for further replies.

maybe

Instructor
Jul 11, 2001
14
GB
Question.

If you are preloading images for mouseovers, can someone please let me know if the following is true. (A) will download quicker than (B) because it has a shorter var name.

(A)
var a_on = newImage();
var a_on.src = "?????.gif";
var a_off = newImage();
var a_off.src = "?????.gif";


(B)
var insurance_for_your_bus_on = newImage();
var insurance_for_your_bus_on.src = "?????.gif";
var insurance_for_your_bus_off = newImage();
var insurance_for_your_bus_off.src = "?????.gif";


Thanks
 
i have never heard of something similar, but that doesn't mean that its wrong .. it is me thinking that its nonsence.. Victor
 
I'm with Victor, I don't think it will make a bit of difference. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
it might take longer for the client to process. that probably made a difference on a 286, not on today's systems though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top