File tree Expand file tree Collapse file tree 10 files changed +12
-11
lines changed Expand file tree Collapse file tree 10 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 1+ document . getElementById ( 'redirect_to' ) . focus ( ) ;
Original file line number Diff line number Diff line change 11{% load i18n %}{% load static %}
22< link rel ="stylesheet " href ="{% static 'debug_toolbar/css/print.css' %} " type ="text/css " media ="print ">
33< link rel ="stylesheet " href ="{% static 'debug_toolbar/css/toolbar.css' %} " type ="text/css ">
4- < script src ="{% static 'debug_toolbar/js/toolbar.js' %} "> </ script >
4+ < script src ="{% static 'debug_toolbar/js/toolbar.js' %} " defer > </ script >
55< div id ="djDebug " class ="djdt-hidden " dir ="ltr "
66 {% if toolbar.store_id %}
77 data-store-id ="{{ toolbar.store_id }} "
Original file line number Diff line number Diff line change 3333 </ tbody >
3434</ table >
3535
36- < script src ="{% static 'debug_toolbar/js/toolbar.profiling.js' %} "> </ script >
36+ < script src ="{% static 'debug_toolbar/js/toolbar.profiling.js' %} " defer > </ script >
Original file line number Diff line number Diff line change 114114 < p > {% trans "No SQL queries were recorded during this request." %}</ p >
115115{% endif %}
116116
117- < script src ="{% static 'debug_toolbar/js/toolbar.sql.js' %} "> </ script >
117+ < script src ="{% static 'debug_toolbar/js/toolbar.sql.js' %} " defer > </ script >
Original file line number Diff line number Diff line change @@ -34,4 +34,4 @@ <h3>{% trans "SQL explained" %}</h3>
3434 </ div >
3535</ div >
3636
37- < script src ="{% static 'debug_toolbar/js/toolbar.sql.js' %} "> </ script >
37+ < script src ="{% static 'debug_toolbar/js/toolbar.sql.js' %} " defer > </ script >
Original file line number Diff line number Diff line change @@ -41,4 +41,4 @@ <h3>{% trans "SQL profiled" %}</h3>
4141 </ div >
4242</ div >
4343
44- < script src ="{% static 'debug_toolbar/js/toolbar.sql.js' %} "> </ script >
44+ < script src ="{% static 'debug_toolbar/js/toolbar.sql.js' %} " defer > </ script >
Original file line number Diff line number Diff line change @@ -38,4 +38,4 @@ <h3>{% trans "SQL selected" %}</h3>
3838 </ div >
3939</ div >
4040
41- < script src ="{% static 'debug_toolbar/js/toolbar.sql.js' %} "> </ script >
41+ < script src ="{% static 'debug_toolbar/js/toolbar.sql.js' %} " defer > </ script >
Original file line number Diff line number Diff line change @@ -41,4 +41,4 @@ <h4>{% trans "Browser timing" %}</h4>
4141 </ tbody >
4242 </ table >
4343</ div >
44- < script src ="{% static 'debug_toolbar/js/toolbar.timer.js' %} "> </ script >
44+ < script src ="{% static 'debug_toolbar/js/toolbar.timer.js' %} " defer > </ script >
Original file line number Diff line number Diff line change 1- {% load i18n %}
1+ {% load i18n static %}
22<!DOCTYPE html>
33< html >
44< head >
@@ -9,8 +9,6 @@ <h2>{% trans "Location:" %} <a id="redirect_to" href="{{ redirect_to }}">{{ redi
99< p class ="notice ">
1010 {% trans "The Django Debug Toolbar has intercepted a redirect to the above URL for debug viewing purposes. You can click the above link to continue with the redirect as normal." %}
1111</ p >
12- < script type ="text/javascript ">
13- document . getElementById ( 'redirect_to' ) . focus ( ) ;
14- </ script >
12+ < script src ="{% static 'debug_toolbar/js/redirect.js' %} " defer > </ script >
1513</ body >
1614</ html >
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ Change log
44UNRELEASED
55----------
66
7+ * Use ``defer `` on all ``<script> `` tags to avoid blocking HTML parsing.
8+
791.10.1 (2018-09-11)
810-------------------
911
You can’t perform that action at this time.
0 commit comments