Issue #1871656: emit.php is being called for every ajax call. Make emitters work with content returned via AJAX calls.