Same name and namespace in other branches
  1. 5.0.x advagg_mod/advagg_mod.module \advagg_mod_page_attachments_alter() 1 comment
  2. 8.x-2.x advagg_mod/advagg_mod.module \advagg_mod_page_attachments_alter() 1 comment
  3. 8.x-3.x advagg_mod/advagg_mod.module \advagg_mod_page_attachments_alter() 1 comment
  4. 8.x-4.x advagg_mod/advagg_mod.module \advagg_mod_page_attachments_alter() 1 comment

Implements hook_page_attachments_alter().

File

advagg_mod/advagg_mod.module, line 90

Code

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