SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Mar 2006
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cancel screen update while making DOM changes

    Hello, everyone.

    I've got some javascript intensive pages that become too slow. I think the problem is that every DOM change made from javascript forces a screen update; so, when you chain many of these changes, it quickly becomes inefficient. I've been looking for a way to group DOM changes into chunks, so that screen (browser) updates occur only after them, but I don't find a solution. Can anybody help?

    Thanks in advance.

  2. #2
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    createDocumentFragment might be what you are looking for:
    http://www.mozilla.org/docs/dom/domr...doc_ref45.html

    Also supported in IE 6+, other browsers untested


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •