Optimized JS aggressive-compression list a little more
authorDan
Wed, 13 Feb 2008 23:16:33 -0500
changeset 421 dbae4d327846
parent 420 301f546688d1
child 423 990ccfb20120
Optimized JS aggressive-compression list a little more
includes/clientside/jsres.php
--- a/includes/clientside/jsres.php	Wed Feb 13 21:59:07 2008 -0500
+++ b/includes/clientside/jsres.php	Wed Feb 13 23:16:33 2008 -0500
@@ -44,10 +44,26 @@
 // CONFIG
 
 // Files safe to run full (aggressive) compression on
-$full_compress_safe = array('ajax.js', 'editor.js', 'acl.js', 'rijndael.js', 'admin-menu.js', 'autofill.js', 'comments.js', 'misc.js', 'faders.js', 'dropdown.js');
+$full_compress_safe = array(
+  // Sorted by file size, descending (du -b *.js | sort -n)
+  'ajax.js',
+  'editor.js',
+  'acl.js',
+  'misc.js',
+  'comments.js',
+  'rijndael.js',
+  'autofill.js',
+  'dropdown.js',
+  'paginate.js',
+  'autocomplete.js',
+  'md5.js',
+  'flyin.js',
+  'template-compiler.js',
+  'toolbar.js'
+);
 
 // Files that should NOT be compressed due to already being compressed, licensing, or invalid produced code
-$compress_unsafe = array('SpryEffects.js', 'json.js', 'fat.js');
+$compress_unsafe = array('SpryEffects.js', 'json.js', 'fat.js', 'admin-menu.js');
 
 require('includes/functions.php');
 require('includes/json2.php');