# Is it feasible to improve streaming HTML in Django?

**URL:** <https://forum.djangoproject.com/t/is-it-feasible-to-improve-streaming-html-in-django/21017>\
**Category:** Async\
**Created:** [May 19, 2023, 3:22am UTC](https://forum.djangoproject.com/t/is-it-feasible-to-improve-streaming-html-in-django/21017 "2023-05-19T03:22:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![andrewgodwin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/andrewgodwin/32/2_2.png) [@andrewgodwin](https://forum.djangoproject.com/u/andrewgodwin)\
**Post date:** [May 19, 2023, 3:58pm UTC](https://forum.djangoproject.com/t/is-it-feasible-to-improve-streaming-html-in-django/21017/2 "2023-05-19T15:58:24Z")

</div>

This has always been one of my “white whales” with async - where we can finally close the loop on rendering, as it were.

As it stands, I think we’d have to go in and overhaul the template engine to accomplish this; async functions, iterators and generators are different enough that they can’t really be slotted in, and the way templates render is especially difficult to work with in this context.

I’ve not been in that codebase in a while, but the first step would be having someone who knows templating somewhat well go and learn it and establish if there’s a core node render loop we can async-iterate over in a similar way to Jinja.

---

_[View the full topic](https://forum.djangoproject.com/t/is-it-feasible-to-improve-streaming-html-in-django/21017)._
