On Sep 15, 2008, at 5:25 PM, RobG wrote: > > On Sep 14, 4:51 am, Jon Brisbin <[EMAIL PROTECTED]> wrote: >> I have an Ajax app that is dynamically updating the DOM and in all >> other desktop browsers, the UI updates, including position, window >> scrollY, and other updates are deferred until all the changes are >> made >> and the result is that there's no flickering of elements on the page. >> I can remove an element from the DOM, scoot other items on the page >> into the space the old element took up, and the user can't tell >> because the UI updates are deferred. >> > Have you tried creating a document fragment that is not part of the > DOM, doing updates to that, then inserting it into the DOM? > > > -- > Rob
I haven't tried that (I don't think :). I'm using jQuery's node- creation utility (passing html into $), which I think uses a fragment. But I wasn't doing any updates to the new content, I'm simply inserting it into the DOM. I'd hoped to not have to replace the entire contents, but simply add or delete divs as required. There's really only a fraction of a second between when the nodes are removed from the DOM and the page is scrolled to account for those missing nodes, but it's noticeable. I'll try this method (changing the content I'm about to insert rather than altering what's already in the DOM) and see if that makes a difference. Thanks for the help! 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 -~----------~----~----~----~------~----~------~--~---
