I created a PR which implements it:
https://github.com/django/django/pull/13913
It is very simple:
{{{
<!-- END Container -->
+ {% block end_of_body %}{% endblock %}
</body>
</html>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32564>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Carlton Gibson):
As per the discussion on the PR, I'd like us to establish whether this is
still needed with modern browsers and `defer` and `async` &co. 🤔
(It's not a big addition, so in principle, yes, but if we can do
without...)
Thomas, can I ask that you do a bit of reading around?
--
Ticket URL: <https://code.djangoproject.com/ticket/32564#comment:1>
Comment (by Matthias Kestenholz):
I'm definitely no expert and I haven't done any measurements, but here's a
chart: https://caniuse.com/script-defer
`<script src="..." defer>` seems to be enormously well supported,
certainly by all browsers that are the target of Django's admin interface.
--
Ticket URL: <https://code.djangoproject.com/ticket/32564#comment:2>
* status: new => closed
* resolution: => wontfix
Comment:
I agree with previous comments. I don't think that we need an extra block.
--
Ticket URL: <https://code.djangoproject.com/ticket/32564#comment:3>