Currently the HTML Rewriter only supports buffered responses. That is, it only starts sending the modified response only when the proxy has received and processed the entire HTML from the original page.
The task is to enable HTML streaming when using the Configurable Rewriter. The rewritten HTML should be sent to the end client in chunks as soon as they are received and proxied.