How to hide ajax requests from firebug console?
How to hide ajax requests from firebug console or anything that shows ajax calls ?
Please, call this function after ajax success or fail:
$('.result').load('testtemplateboth/testpagetpl');
clearconsole();
function clearconsole() {
console.log(window.console);
if(window.console || window.console.firebug) {
console.clear();
}
}
OR
$('.log').ajaxComplete(function() {
clearconsole();
$(this).text('Triggered ajaxComplete handler.');
});
function clearconsole() {
console.log(window.console);
if(window.console || window.console.firebug) {
console.clear();
}
}
Make JSONP calls. JSONP calls are not real ajax requests (because they don't use XMLHttpRequest
object, and they simply inject a script tag into the DOM). But they won't be shown in Firebug.
As described here (https://getfirebug.com/wiki/index.php/Console_Panel), you can set it in about:config tab, changing the extensions.firebug.showXMLHttpRequests value.