This example demonstrates how to use Django's StreamingHttpResponse along with the declarative Shadow DOM to stream content to the client.
Demo repo here.
The key part is that the Shadow DOM content that is at the end of the template gets projected by the browser's HTML parser higher up in the document as it is streamed to the client. This allows the server to send content to the client as it is generated, rather than waiting for the entire response to be generated before sending it to the client.
Content for item 4 Content for item 2 Content for item 1 Content for item 5 Content for item 3