I have a very simple script to trigger a mouseover event. It shows and hides a single info text on my page. When i view a page in firefox it takes the script 1 second to do the mouseover. IE6 does it instantly.

The script becomes slower, the bigger the source code of my page gets.

drupal_add_js('

$(document).ready(function(){
  $("#headerinfo").hover(function(){
    $("#headerinfo_text").show();
  },function(){
    $("#headerinfo_text").hide();
  });
});

',inline);

Comments

derjochenmeyer’s picture

Its strange. I had a table like listing of nodes but i did it with <div> and css floats.

              <div class="main">
                        <div class="sub1">Number</div>
                        <div class="sub2">Title</div>
                        <div class="sub3">attribute1</div>
                        <div class="sub4">attribute2</div>
                        <div class="sub5">Comments</div>
              </div>

Now i use a true <table> structure and it works perfectly. jQuery seems to have a performance problem with too many divs in the DOM? But why only in Firefox. Very strange.

----------------------
okay.cool

edhel’s picture