I just don''t use innerHTML w/o first deleting all DOM nodes within the
element I am attempting to use innerHTML on. Not sure if this is the best
solution, but it seems to keep my pages snappy.
Also, I believe this problem only occurs when the elements within the innerHTML
have static references to other DOM nodes within event handlers.
-Andrew Martinez
-----Original Message-----
From: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
[mailto:rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org]On Behalf
Of Jean-Philippe Encausse
Sent: Tuesday, November 07, 2006 8:50 AM
To: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: [Rails-spinoffs] JS Object Pooling
Hi !
I''ve read in lots of articles that Browser''s Garbage Collector
didn''t
work well. So when doing lots of AJAX request, developers must take
care of DOM elements created that would consume memory. Especially
when using "innerHTML" atributes.
- Is it true ?
- Is ObjectPooling a solution ?
- Is there "Prototype" ObjectPooling libs ?
- Is there pattern description of ObjectPooling for JavaScript ?
Regards
--
Jean-Philippe Encausse - R&D Jalios SA
Jp [at] encausse.net - http://www.encausse.com - http://www.jalias.com
GTalk: jp.encausse [at] gmail.com - SMS: sms [at] jp.encausse.net
Mob: +33 6 82 12 56 99 Jalios: +33 1 39 23 92 83 Tel: +33 1 39 18 90 15
Do it Once, Use it Twice ~ Do it Twice, Make It Once
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---