Drupal’s AdvAgg and its job
CSS/JS aggregation: what it is for
What makes AdvAgg an advanced aggregation tool
Drupal has its own out-of-box aggregation capabilities, but AdvAgg greatly improves these by offering more effective approaches to file grouping, caching, and compression.
Among AdvAgg’s endless advanced aggregation features, it is worth mentioning at least a couple of examples:
- On-demand aggregate generation.
- The number of bundles is your choice.
The AdvAgg lets you target the number of aggregated bundles for one web page.
- Protection from duplicate work.
In case of many requests for the same page, AdvAgg uses locking to prevent the same aggregates from being created again and again.
- Smarter caching for better speed.
- Efficient CSS/JS compression.
The module, together with its useful submodules, efficiently minifies the files by compressing them with a variety of configurable compression methods.
Configuring the AdvAgg
In the “Advanced CSS/JS Aggregation” the most important setting that has to be on is “Enable advanced aggregation.” Without it, the module is not going to work.
You can then adjust plenty of additional settings related to setting the number of bundles, choosing compression methods, using media queries, validating your files, and much more.