DeferCss constructor.
Paramètres
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
Fichier
-
advagg_mod/
src/ Asset/ DeferCss.php, line 40
Classe
- DeferCss
- Modify stylesheet links to defer them. May lead to Flash of unstyled content.
Namespace
Drupal\advagg_mod\AssetCode
public function __construct(ConfigFactoryInterface $config_factory) {
$this->deferMethod = $config_factory->get('advagg_mod.settings')
->get('css_defer_js_code');
$this->counter = $config_factory->get('advagg.settings')
->get('global_counter');
$this->external = $config_factory->get('advagg_mod.settings')
->get('css_defer_external');
}