def on_connection:
send(headers)
send(start of page)
for row in db:
send(row)
send(footer)
will have the exact same effect as what you said (not like that applies regardless, I don't think jinja outputs partial renders, since its made for flask)
elsewise, I'd say, try creating a new FF profile, unfortunately afaik older profiles can still jank up the browser a bit