That's a very good idea, and exactly what HTMX (and similar implementations) do.