I have a script which attaches an "add this to my cart" control to one
of N rows of files in a Web page using invoke on a collection gathered
with $$(''#mytable .mycontrol''). On most pages, this works
great.
But I have this one killer page with over 3,000 rows in the table.
Once the script finishes loading, it runs really well. But that initial
load takes so long that I have to press the "keep trying" button three
times in Firefox.
I seem to remember seeing a mention of using window.setTimeout to
trigger a kind of interrupt in long-running scripts, and keep them from
timing out like this. But I can''t find any examples in my archives of
this list or on Google.
Does anyone have any idea how to make this sort of thing work, or any
other suggestions about how I could speed up this initial load? Is
there another more efficient way to iterate over 3,000 items like this?
Thanks in advance,
Walter
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---