Advanced CSS/JS Aggregation


List of modules included
When configured to do so, advagg can improve page rendering speeds

7.x & 8.x

Summary (7.x & 8.x)
AdvAgg allows you to improve the frontend performance of your site. Be sure to do a before and after comparison by using Google's PageSpeed Insights and WebPagetest.org. The performance benefits are achieved by using some of the features found in AdvAgg and its sub modules. Out of the box AdvAgg's frontend performance will be similar to cores.

Features & benefits (7.x & 8.x)

  • Stability - If the Aggregate doesn't exist it will be generated on demand.
  • Stability - Stampede file protection. Uses locking so multiple requests for the same thing will result in only one thread doing the work.
     
  • Backend - Render Cache; cache the generated HTML.
  • Backend - Zero file I/O if the Aggregated file already exists. Big improvement if using a networked filesystems (NFS, S3, etc).
     
  • Frontend - Combine CSS files by using media queries; better CSS groupings.
  • Frontend - DNS Prefetch. Start DNS lookup for external domains as soon as possible.
  • Frontend - Workaround IE 6-9 CSS limitation by preventing more than 4095 selectors in a CSS file.
  • Frontend - Gzip support. Compress files into a .gz file and serve from Apache. This is faster then gzipping the file on each request.
     
  • DX - Browser conditional comments for CSS and JS.
  • DX - All attributes are supported.
  • DX - D8 Features backported when feasible.
  • DX - Add JS to any region of the theme.
  • DX - Admin can drop a cookie that will turn off file aggregation (theme development).
  • DX - Url query string to turn off aggregation for that request. ?advagg=0 will turn off file aggregation if the user has the "bypass advanced aggregation" permission. ?advagg=-1 will completely bypass all of Advanced CSS/JS Aggregations modules and submodules.

Submodules (7.x & 8.x)

  • Frontend - Async Font Loader. Text is readable before the webfont has been downloaded; usable site quicker.
  • Frontend - Bundler Submodule. Given a target number of CSS/JS aggregates, this will try very hard to meet that goal. It smartly groups files together.
  • Frontend - CSS/JS Compress Submodules. Can minifiy files & inline CSS/JS. Can also turn off core CSS compression for theme development.
  • Frontend - Modifier Submodule. Has various tweaks packaged up. Force preprocessing for all CSS/JS; move JS to footer; add defer tag to all JS; Inline all CSS/JS for given paths; remove unused JavaScript tags if possible, which will scan all included JS files for references to jquery and drupal, if none are found then the default JavaScript is removed from the page; built-in support for the JavaScript async shim; the use of a shared directory for a unified multisite; Use JS to load CSS asynchronously.
  • Security - Subresource Integrity. Provides a hash of the CSS/JS file allowing for assets delivered over a CDN to be verified.
     
  • DX - CSS/JS Validator Submodule. Validate all CSS files using jigsaw.w3.org. Check all CSS files with CSSLint. Check all JS files with JSHint

Notes (7.x)


HTTP Parallel Request & Threading Library is not required but is recommended so Aggregates will be built in the background.

3rd Party Modules (7.x)


AdvAgg Search & Replace
CSS Delivery Optimizer

Similar Modules (7.x)


List of modules in D7 that might provide similar functionality.
https://www.drupalproject.org/project/core_library
https://www.drupalproject.org/project/agrcache
https://www.drupalproject.org/project/blackwhite
https://www.drupalproject.org/project/bundle_aggregation
https://www.drupalproject.org/project/magic
https://www.drupalproject.org/project/uglifyjs
https://www.drupalproject.org/project/speedy
https://www.drupalproject.org/project/simple_aggregation
https://drupal.org/sandbox/alanmackenzie/2135127 (Role CSS & JS Aggregation)
https://www.drupalproject.org/project/css_js_total_control
https://www.drupalproject.org/project/minify
https://www.drupal.org/sandbox/joel/2121797 (Prefetch)
https://www.drupalproject.org/project/color_rebuilder
Supporting organizations: 
Paid for mikeytown2 to develop & maintain this module

Advanced CSS/JS Aggregation项目的Drush安装命令:复制到剪贴板

注:个别模块仍需开启相关子模块。
周安装量: 
31785
维护状态: 
积极维护中
开发状态: 
积极开发中

推荐版本下载:

版本下载地址发布日期发布说明翻译下载
8.x-2.3tar.gz (136.95 KB) | zip (205.66 KB)2017年3月10日发布说明简 | 繁 | 更多
7.x-2.21tar.gz (362.93 KB) | zip (416.12 KB)2017年3月18日发布说明简 | 繁 | 更多

开发版本下载:

版本下载地址发布日期发布说明翻译下载
8.x-2.x-devtar.gz (137.24 KB) | zip (206.05 KB)2017年4月20日发布说明简 | 繁 | 更多
7.x-2.x-devtar.gz (363.58 KB) | zip (416.89 KB)2017年4月20日发布说明简 | 繁 | 更多