Skip to content

Commit 47483b4

Browse files
committed
rm jquery
1 parent 94db2f0 commit 47483b4

File tree

6 files changed

+6
-27
lines changed

6 files changed

+6
-27
lines changed

debug_toolbar/static/debug_toolbar/js/jquery_post.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

debug_toolbar/static/debug_toolbar/js/jquery_pre.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

debug_toolbar/static/debug_toolbar/js/toolbar.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(function ($, publicAPI) {
1+
(function () {
22
var $$ = {
33
on: function(root, eventName, selector, fn) {
44
root.addEventListener(eventName, function(event) {
@@ -319,12 +319,12 @@
319319
});
320320
}
321321
};
322-
$.extend(publicAPI, {
322+
window.djdt = {
323323
show_toolbar: djdt.show_toolbar,
324324
hide_toolbar: djdt.hide_toolbar,
325325
close: djdt.hide_one_level,
326326
cookie: djdt.cookie,
327327
applyStyle: djdt.applyStyle
328-
});
328+
};
329329
document.addEventListener('DOMContentLoaded', djdt.init);
330-
})(djdt.jQuery, djdt);
330+
})();
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
(function ($) {
1+
(function () {
22
djdt.applyStyle('background-color');
33
djdt.applyStyle('left');
44
djdt.applyStyle('width');
5-
})(djdt.jQuery);
5+
})();

debug_toolbar/templates/debug_toolbar/base.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
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/jquery_pre.js' %}"></script>
5-
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
6-
<script src="{% static 'debug_toolbar/js/jquery_post.js' %}"></script>
74
<script src="{% static 'debug_toolbar/js/toolbar.js' %}"></script>
85
<div id="djDebug" class="djdt-hidden" dir="ltr"
96
{% if toolbar.store_id %}

docs/tips.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@ panel or moving the ``DebugToolbarMiddleware`` to the end of
2525
``MIDDLEWARE_CLASSES``. Read more about it at
2626
:ref:`ProfilingPanel <profiling-panel>`
2727

28-
Using the toolbar offline
29-
-------------------------
30-
31-
The Debug Toolbar loads the jQuery_ library from the Google Hosted Libraries
32-
CDN. Your browser will keep it in cache, allowing you to use the toolbar even
33-
if you disconnect from the Internet temporarily.
34-
35-
.. _jQuery: https://jquery.com/
36-
3728
Performance considerations
3829
--------------------------
3930

0 commit comments

Comments
 (0)