summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Constants.pm
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-09-17 18:33:47 +0200
committerByron Jones <glob@mozilla.com>2014-09-17 18:33:47 +0200
commitc8c2d8e219c8da48c547a15c227dcf934b2d7b57 (patch)
tree6cb3b527c707c1b890b309379d3fa930cf310bde /Bugzilla/Constants.pm
parentd4a04eb346c3f17591337c9df26796323ae9274f (diff)
downloadbugzilla-c8c2d8e219c8da48c547a15c227dcf934b2d7b57.tar.gz
bugzilla-c8c2d8e219c8da48c547a15c227dcf934b2d7b57.tar.xz
Bug 1064395: concatenate and slightly minify javascript files
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r--Bugzilla/Constants.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm
index a37638705..0c3c72a49 100644
--- a/Bugzilla/Constants.pm
+++ b/Bugzilla/Constants.pm
@@ -46,6 +46,8 @@ use Memoize;
bz_locations
+ CONCATENATE_ASSETS
+
IS_NULL
NOT_NULL
@@ -223,6 +225,11 @@ use constant REST_DOC => "http://www.bugzilla.org/docs/tip/en/html/api/";
use constant REMOTE_FILE => 'http://updates.bugzilla.org/bugzilla-update.xml';
use constant LOCAL_FILE => 'bugzilla-update.xml'; # Relative to datadir.
+# When true CSS and JavaScript assets will be concatanted and minified at
+# run-time, to reduce the number of requests required to render a page.
+# Setting this to a false value can help debugging.
+use constant CONCATENATE_ASSETS => 1;
+
# These are unique values that are unlikely to match a string or a number,
# to be used in criteria for match() functions and other things. They start
# and end with spaces because most Bugzilla stuff has trim() called on it,