You are here

function advagg_css_in_js in Advanced CSS/JS Aggregation 8.2

Same name and namespace in other branches
  1. 7.2 advagg.module \advagg_css_in_js()

Returns TRUE if the CSS is being loaded via JavaScript.

Return value

bool TRUE if CSS loaded via JS. FALSE if not.

File

./advagg.module, line 311
Advanced CSS/JS aggregation module.

Code

function advagg_css_in_js() {
  if (\Drupal::moduleHandler()
    ->moduleExists('advagg_mod') && \Drupal::config('advagg_mod.settings')
    ->get('css_defer')) {
    return TRUE;
  }
  return \Drupal::config('advagg.settings')
    ->get('advagg_css_in_js');
}