For folk navigating with a lot of JavaScript- for possible use/comment/correction/criticism, how I've hacked Toolsbar.php is shown below.
So far it doesn't appear to have had any untoward side-effects. Be aware that this still doesn't updated the on-screen toolbar with every JavaScript request/response, but does permit an update with a JavaScript-induced page-nagivation update (so it simply moves some of the previously header-only feedback to on-screen feedback)).
From:
Code:
$format = $response->getHeaderLine('content-type');
// Non-HTML formats should not include the debugbar
// then we send headers saying where to find the debug data
// for this response
if ($request->isAJAX() || strpos($format, 'html') === false)
{
To:
Code:
$response->populateHeaders();
$format = $response->getHeaderLine('content-type');
// Non-HTML formats should not include the debugbar
// then we send headers saying where to find the debug data
// for this response
if (strpos($format, 'html') === false)
{