Changeset 7654


Ignore:
Timestamp:
12/14/12 09:25:30 (7 years ago)
Author:
angelo
Message:

Ticket #3197 - Reduzir tempo de carregamento do modulo Expresso Mail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/assetic.php

    r7625 r7654  
    2929$javaVersion = shell_exec("java -version 2>&1"); 
    3030$filterManager = new FilterManager(); 
     31$compressor = new Yui\JsCompressorFilter('../prototype/library/yuicompressor/yuicompressor.jar'); 
     32$compressor->setCharset("ISO-8859-1"); 
    3133 
    3234$plugins = new AssetCollection(array( 
     
    6062); 
    6163 
    62 /*Se o servidor possuir a jvm então minifique os arquivos*/ 
     64/*Se o servidor possuir a jvm então minifique os arquivos*/ 
    6365if (strpos($javaVersion,"java version") !== false){ 
    64     $filterManager->set('yui_js', new Yui\JsCompressorFilter('../prototype/library/yuicompressor/yuicompressor.jar'));     
     66    $filterManager->set('yui_js', $compressor);     
    6567    $plugins->ensureFilter($filterManager->get('yui_js'));     
    6668} 
     
    8789 
    8890if (strpos($javaVersion,"java version") !== false){ 
    89     //$filterManager->set('yui_js', new Yui\JsCompressorFilter('../prototype/library/yuicompressor/yuicompressor.jar'));     
     91    //$filterManager->set('yui_js', $compressor);     
    9092    //$scripts->ensureFilter($filterManager->get('yui_js'));     
    9193} 
Note: See TracChangeset for help on using the changeset viewer.