Posts Tagged "FireBug"
Firfox 3.5
Firefox Performance: Fast — Faster — Fastest
Results of a SunSpider test on a Windows XP machine
Firefox 3.5 has just been released. I had installed the beta version but the problem I had was that some of the extensions such as firebug, which I really need was not working. I have just installed the released version of firefox 3.5 and I have to say that its much faster than the previous versions. Its so fast that its the first thing you realize when you upgrade. The best part is that most of the extensions are already available for 3.5. I just hope that they have finally done something about the memory leak!
Detect if FireBug is enabled

FireBug is a must have developers tool but at the same time it creates performance issues for some websites. GMail would be the most well known example. If you view your GMail while you have enabled FireBug’s console you will see a message on the top asking you to disable FireBug. Here is how they do it:
<html> <head> <title>Some Title</title> </head <body> </body> </html> <script type="text/javascript"> if( window.console && window.console.firebug ){ document.getElementsByTagName('body')[0].innerHTML += "<div onclick=\"this.style.display = 'none'\" style='position:absolute; top:0; width:100%; padding: 5px 0; background: red; border-bottom: 1px solid #770; font-weight: bold; text-align: center;'>Please Disable FireBug</div>"; } </script> </html>
As you can see there is nothing complicated about this code. The if statement determines if the user has enabled FireBug’s console or not.
Read More