You are here

function advagg_mod_page_attachments_alter in Advanced CSS/JS Aggregation 8.4

Same name and namespace in other branches
  1. 8.2 advagg_mod/advagg_mod.module \advagg_mod_page_attachments_alter()
  2. 8.3 advagg_mod/advagg_mod.module \advagg_mod_page_attachments_alter()

Implements hook_page_attachments_alter().

File

advagg_mod/advagg_mod.module, line 90
Advanced aggregation modifier module.

Code

function advagg_mod_page_attachments_alter(array &$page) {
  if (advagg_mod_css_defer_active()) {
    $page['#attached']['library'][] = 'advagg_mod/css_defer';
  }
}