I am trying to debug my web app and i have realised that firebug is making it damn slow. Is there any reason for this? Are there any set of reasons like maybe long js file which cause this problem?
Thank you very much.
UPDATE Am developing a web-app which will be primarily used by developers. Now if I dont find out what exactly is making firebug make my website slow, I will have to display one of those ugly Gmail style warnings. :(
Firebug is pretty intense on the ram. Certain applications like gmail detect that firebug is opened and warn the user that they might have a slower experience than usual.
Just turn it off when you don't need it.
UPDATE Am developing a web-app which will be primarily used by developers.
EDIT: Based on what you edited, I remembered that article concerning firebug : http://blog.getfirebug.com/?p=124
In the new model, if you can see Firebug, then its active. If you can’t it’s not.
I guess the developers using your website can figure on their own that if they have firebug opened it will slow down the website, right? If not I suppose that you have no choice but detecting if FB is opened and display an error message.
This chunk of code could also help :
if (window.console && window.console.firebug) {
/* firebug found! */
}
There is also a way to disable some functionnalities :
if (! ('console' in window) || !('firebug' in console)) {
var names = ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'];
window.console = {};
for (var i = 0; i < names.length; ++i) window.console[names[i]] = function() {};
}
I haven't tested it (found here : http://davidwalsh.name/how-to-sniff-firebug-disable)
Hope that helps