On Sep 15, 2008, at 5:25 PM, RobG wrote:

> Have you tried creating a document fragment that is not part of the
> DOM, doing updates to that, then inserting it into the DOM?

I seem to remember reading somewhere in Apple's documentation them  
suggesting that you do this as a matter of course. It's not really  
necessary in the desktop browsers, I don't think, but it works fine in  
both iPhone and desktop. I don't like having to have two copies of  
most of the nodes I'm monkeying with in memory, but I'm hoping the  
garbage collector will handle those removed nodes.

I changed it to clone the nodes I need, tack on the extra nodes, then  
do a jQuery replaceWith on one div. The updates happen fast enough  
that the only real flicker I have to deal with is re-positioning a  
navigational element that has to stay on-screen all the time (since  
there's no fixed-viewport positioning).

Thanks!

Jon Brisibn
http://jbrisbin.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" 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/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to