Re: onmouseover
- From: Randy Webb <HikksNotAtHome@xxxxxxx>
- Date: Mon, 05 Sep 2005 16:40:56 -0400
Dr John Stockton said the following on 9/5/2005 10:10 AM:
JRS: In article <fJqdnSQbcc9gq4beRVn-2Q@xxxxxxxxxxx>, dated Sun, 4 Sep 2005 14:03:50, seen in news:comp.lang.javascript, Randy Webb <HikksNotAtHome@xxxxxxx> posted :
Both display the same thing in the end. The second is close to 100 times faster than the first. Which was my point in my reply.
It can be interesting to find out, in the end, what your point was actually intended to be.
We may never know.
But what you mean is that a certain portion of the code will take a hundredth of the time; not that the page will display 100 times quicker.
Actually, it only takes 1/99th the time to run it once versus 100 times, but thats beside the point.
Speeding up portions of the code is always useful, provided that it is not accompanied by countervailing disadvantage. On a modern machine, say less than ten years old, a hundred document.writes (as opposed to concatenations and one document.write) are insignificant - especially when there are 100 images to display. And the code with multiple document.writes is IMHO clearer to read in News.
Probably true about News, but I don't write code to "look good in News", I wrote code that works. If it happens to look good in News, thats a benefit but not my primary concern when writing code.
-- Randy comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly .
- References:
- onmouseover
- From: windandwaves
- Re: onmouseover
- From: Dr John Stockton
- Re: onmouseover
- From: Randy Webb
- Re: onmouseover
- From: Jim Davis
- Re: onmouseover
- From: Randy Webb
- Re: onmouseover
- From: Dr John Stockton
- onmouseover
- Prev by Date: Re: Can Hide Browser Statusbar
- Next by Date: Re: Scrollbars appear when clicking a Javascript link in IE
- Previous by thread: Re: onmouseover
- Next by thread: Re: onmouseover
- Index(es):
Relevant Pages
|