File tree 10 files changed +12
-11
lines changed
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 1
1
{% load i18n %}{% load static %}
2
2
< link rel ="stylesheet " href ="{% static 'debug_toolbar/css/print.css' %} " type ="text/css " media ="print ">
3
3
< 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 >
5
5
< div id ="djDebug " class ="djdt-hidden " dir ="ltr "
6
6
{% if toolbar.store_id %}
7
7
data-store-id ="{{ toolbar.store_id }} "
Original file line number Diff line number Diff line change 33
33
</ tbody >
34
34
</ table >
35
35
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 114
114
< p > {% trans "No SQL queries were recorded during this request." %}</ p >
115
115
{% endif %}
116
116
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>
34
34
</ div >
35
35
</ div >
36
36
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>
41
41
</ div >
42
42
</ div >
43
43
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>
38
38
</ div >
39
39
</ div >
40
40
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>
41
41
</ tbody >
42
42
</ table >
43
43
</ 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 %}
2
2
<!DOCTYPE html>
3
3
< html >
4
4
< head >
@@ -9,8 +9,6 @@ <h2>{% trans "Location:" %} <a id="redirect_to" href="{{ redirect_to }}">{{ redi
9
9
< p class ="notice ">
10
10
{% 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." %}
11
11
</ 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 >
15
13
</ body >
16
14
</ html >
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ Change log
4
4
UNRELEASED
5
5
----------
6
6
7
+ * Use ``defer `` on all ``<script> `` tags to avoid blocking HTML parsing.
8
+
7
9
1.10.1 (2018-09-11)
8
10
-------------------
9
11
You can’t perform that action at this time.
0 commit comments