1function handleRequest(request, response) { 2 response.processAsync(); 3 4 timer = Components.classes["@mozilla.org/timer;1"].createInstance( 5 Components.interfaces.nsITimer 6 ); 7 timer.init( 8 function() { 9 response.write("Here the content. But slowly."); 10 response.finish(); 11 }, 12 5000, 13 Components.interfaces.nsITimer.TYPE_ONE_SHOT 14 ); 15} 16