From fab05ca8cbb728fddceb8a6aaa117cc684ef06c6 Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Tue, 5 Nov 2013 11:26:32 -0500 Subject: Change how JS libs are loaded This change makes Django-Debug-Toolbar use the existing version of jQuery on the page if one exists, and only loads jQuery if it isn't already loaded. It also explicitly loads the jQuery cookie plugin and the toolbar script as separate files. Finally, we are no longer compressing/minimizing scripts; this is for debug purposes, and presumably will not be served in production. --- Makefile | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fb87b2f..b9f3bb3 100644 --- a/Makefile +++ b/Makefile @@ -22,10 +22,6 @@ coverage: coverage run --branch --source=debug_toolbar `which django-admin.py` test tests coverage html -compress_js: - yuicompressor debug_toolbar/static/debug_toolbar/js/jquery.js > debug_toolbar/static/debug_toolbar/js/toolbar.min.js - yuicompressor debug_toolbar/static/debug_toolbar/js/toolbar.js >> debug_toolbar/static/debug_toolbar/js/toolbar.min.js - compress_css: yuicompressor --type css debug_toolbar/static/debug_toolbar/css/toolbar.css > debug_toolbar/static/debug_toolbar/css/toolbar.min.css -- cgit v1.2.3