You are here

Advanced CSS/JS Aggregation

Primary tabs

$ sudo drush en advagg_ext_compress, advagg_font, advagg_bundler, advagg_js_compress, advagg_sri, advagg_validator, advagg_css_compress, advagg_mod, advagg -y

 

admin/config/development/performance
drupal Caching をOFFに。
Bandwidth optimization をONに。

admin/config/development/performance/advagg

  • Configuration
    AdvAgg Cache Settings
     -> Render Cache ~ 30ms
    CSS Options
     -> Combine CSS files by using media queries
     -> Prevent more than 4095 CSS selectors in an aggregated CSS file
  • JS Compression
    File Compression: Select a Compressor
     -> JSqueeze ~600ms
  • Modifications
    JS
     -> Enable preprocess on all JS : juicebox does not work with this
     -> Optimize JavaScript Ordering: tick all
    CSS
     -> Enable preprocess on all CSS
     -> Optimize CSS Ordering: tick all
    Adjust javascript location and execution
     -> Move JS to the footer: All but JavaScript Libraries

tags_module:

type: 
module