How do I prevent a runPendingTask script being included in returned HTML via ajax? I have created a route to retrieve some categories via AJAX. When the AJAX call returns the HTML a runPendingTask script is also returned with the HTML. How do I prevent this?

/*&lt;![CDATA[*/
(function() {
    var XMLHttpFactories = [
        function() {
            return new XMLHttpRequest()
        },
        function() {
            return new ActiveXObject("Msxml2.XMLHTTP")
        },
        function() {
            return new ActiveXObject("Msxml3.XMLHTTP")
        },
        function() {
            return new ActiveXObject("Microsoft.XMLHTTP")
        }
    ];
    var req = false;
    for (var i = 0; i &lt; XMLHttpFactories.length; i++) {
        try {
            req = XMLHttpFactories[i]();
        } catch (e) {
            continue;
        }
        break;
    }
    if (!req) return;
    req.open('GET',
        "http:\/\/tfc.dev\/hollywood-road\/index.php\/actions\/tasks\/runPendingTasks",
        true);
    if (req.readyState == 4) return;
    req.send();
})(); /*]]&gt;*/
The next (post 2.5.2767 release) will no longer inject that code on AJAX requests.