DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: Firefox slow to update after modifying DOM

Threaded View

  1. #1
    Join Date
    Aug 2008

    Firefox slow to update after modifying DOM

    I am having a problem that so far I have only seen on one computer, but if one does, others might also. The issue occurs in Firefox 3 when my JavaScript code uses a div to draw a box on the screen as the user drags the mouse. As I drag the mouse and the code modifies the div's width and height, the right and bottom borders would frequently flicker and disappear. It is very noticeable.

    I experimented by giving the div a silver background color and adding an inner div offset on all sides by 5px. I took a screen shot as I dragged the mouse (see attachments). I found that the inner div's right and bottom borders were at the edge of the region filled with the silver background instead of being 5 pixels within it. Therefore, it appears that Firefox is changing the size of the div, but is delayed in drawing in the newly covered area of the screen.

    Maybe this is a Firefox bug, but I wanted to see if anybody had any thoughts about it. The problem only occurs in Firefox 3 (Firefox 2 works fine), and thus far, I have only seen it on one computer. In fact, I tried it in FF3 on a Virtual PC running on that same computer and it worked fine. I tried using a different FF profile to see how it worked without any add-ons loaded, but that had no effect. Any ideas what is causing this problem?
    Attached Images Attached Images

Similar Threads

  1. Why so slow - XML DOM?
    By crazy-nun in forum XML
    Replies: 0
    Last Post: 06-29-2005, 09:23 AM
  2. Replies: 0
    Last Post: 06-04-2002, 10:13 AM
  3. update query
    By an in forum Database
    Replies: 0
    Last Post: 05-08-2002, 01:12 PM
  4. Replies: 0
    Last Post: 05-07-2002, 08:34 PM
  5. Update Database too slow!!!
    By Kika in forum VB Classic
    Replies: 1
    Last Post: 05-04-2000, 07:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center