That would be the approach I would take if I could, but unfortunately
every element has to have it's own top left coordinates, and those
coordinates are different for every element. Otherwise they would all
just collapse into the top left hand corner of their containing
element. They start off a
The effort is definately appreciated, and it was a good idea. It just
seems like ForeFox (at least in it's 1.5 incarnation) has rather slow
DOM access compared to the other browsers. FireFox takes a full six
seconds to complete all the initialization routines, all the other
browsers (even Opera,
Gordon ha scritto:
I am using a loop to initialize some elements for animation (befor
initialization they are allowed to float, but for the animation
process itself their positions need to be absolute). My code is as
follows.
$('.elemsToAnimate').each (function ()
{
var thisElem = $(thi
Sorry I was not much help.
On 6/19/07, Gordon <[EMAIL PROTECTED]> wrote:
Had to modify your code some to get it to run properly (replaced the
$.each with a for loop which I think replicated what you were getting
at ). While the function did go faster, the difference was hardly
noticible, some
Had to modify your code some to get it to run properly (replaced the
$.each with a for loop which I think replicated what you were getting
at ). While the function did go faster, the difference was hardly
noticible, something like 10ms off the runtime of around 5100ms. Oh
well, it was worth a try
IE does, but it is $100 or something like that. :(
On 6/19/07, Gordon <[EMAIL PROTECTED]> wrote:
Thanks, I'll give your code a try.
Interestingly the problem seems to be far worse in FireFox 1.5 than in
my other test browsers. The CPU is pegged for a full six seconds and
FireBug confirms tha
Thanks, I'll give your code a try.
Interestingly the problem seems to be far worse in FireFox 1.5 than in
my other test browsers. The CPU is pegged for a full six seconds and
FireBug confirms that this is how long it's taking for my various init
functions to run, and that hte one that loops over
Gordon,
I would suspect that there is very little you can do to speed up the
processing on 120 elements, but I could be completely wrong on that since I
would not know the first thing to truly increase speed. But I am curious if
something like below would speed it up (not tested):
$.each($('.ele
8 matches
Mail list logo