Firefox slow to update after modifying DOM


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: Firefox slow to update after modifying DOM

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Posts
    3

    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

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Welcome to DevX

    Perhaps it isn't FireFox and it is something with that one computer.

    Is there a difference in its configuration from other computers? Different OS? Different patches/service packs? Different something else?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Aug 2008
    Posts
    3
    Hack, you are correct. I found another machine that had the same issue. Both of the machines with the problem run Vista 64-bit. I then created a new 64-bit VM and it too exhibited this problem. So apparently the combination of Firefox 3 and Vista 64-bit makes the issue surface (using FF2 *or* Vista 32-bit makes it go away). But which of these is the real source of the problem? I'm wondering whether I should try to design a decent test case and post a Firefox bug.

  4. #4
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Quote Originally Posted by coryb891
    I'm wondering whether I should try to design a decent test case and post a Firefox bug.
    Not a bad idea actually.

    If this is happening to you then you can bet your OS it is happening to others so I wouldn't be surprised to discover that the FireFox people are already aware of it. I would be interested in hearing what they say to you in response to your test case submission. Post back when you hear something from them.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  5. #5
    Join Date
    Aug 2008
    Posts
    3

  6. #6
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Thanks for posting the link and let us know what, if any, kind of feedback/response you get.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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