I believe the slowness is caused by the speed (or lack thereof) of
extending each element during the call to Event.observe (element=$
(element)) in IE. Using the new DOM Builder functionality in the trunk
branch (http://www.prototypejs.org/2007/5/12/dom-builder) and
replacing
var el=document.createElement("div");
el.className = "dot";
with
var el = new Element('div',{className : "dot"}); //Uses the
DOM Builder functionality to create the element already extended
brings the speeds of the browsers much closer together
Tom
On Aug 8, 9:29 pm, Chippy <[EMAIL PROTECTED]> wrote:
> Just FYI, I tested this in IE7 and got between 4 and 8 times slower
> (rather inconsistent).
>
> On Aug 8, 9:22 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
>
> > I have an application that relies heavily on Event.observe, but I'm
> > finding that in IE (tested mostly in 6), it is about 18 times slower.
> > For me, this adds about six seconds to every action on my app for
> > Internet Explorer users, and I have to figure out a workaround..
>
> > Here's a quick code sample on my website that demos what I'm referring
> > to:
>
> >http://igargoyle.com/tests/ie_proto_event_observe_is_slower/
>
> > Hope you can help!
>
> > Thanks,
> > Tom Longson
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---