includes/clientside/jsres.php
changeset 421 dbae4d327846
parent 420 301f546688d1
child 430 ec90736b9cb9
equal deleted inserted replaced
420:301f546688d1 421:dbae4d327846
    42 chdir(ENANO_ROOT);
    42 chdir(ENANO_ROOT);
    43 
    43 
    44 // CONFIG
    44 // CONFIG
    45 
    45 
    46 // Files safe to run full (aggressive) compression on
    46 // Files safe to run full (aggressive) compression on
    47 $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');
    47 $full_compress_safe = array(
       
    48   // Sorted by file size, descending (du -b *.js | sort -n)
       
    49   'ajax.js',
       
    50   'editor.js',
       
    51   'acl.js',
       
    52   'misc.js',
       
    53   'comments.js',
       
    54   'rijndael.js',
       
    55   'autofill.js',
       
    56   'dropdown.js',
       
    57   'paginate.js',
       
    58   'autocomplete.js',
       
    59   'md5.js',
       
    60   'flyin.js',
       
    61   'template-compiler.js',
       
    62   'toolbar.js'
       
    63 );
    48 
    64 
    49 // Files that should NOT be compressed due to already being compressed, licensing, or invalid produced code
    65 // Files that should NOT be compressed due to already being compressed, licensing, or invalid produced code
    50 $compress_unsafe = array('SpryEffects.js', 'json.js', 'fat.js');
    66 $compress_unsafe = array('SpryEffects.js', 'json.js', 'fat.js', 'admin-menu.js');
    51 
    67 
    52 require('includes/functions.php');
    68 require('includes/functions.php');
    53 require('includes/json2.php');
    69 require('includes/json2.php');
    54 require('includes/js-compressor.php');
    70 require('includes/js-compressor.php');
    55 
    71