Поправил async еще раз

master v3.2.0-r2
parent 6a6c17e200
commit 957e090dcc
  1. 14
      protected/components/AdminLteComponent.php

@ -142,12 +142,14 @@ class AdminLteComponent extends CApplicationComponent
$cs = Yii::app()->clientScript;
/** @var CClientScript $cs */
$cs->registerLinkTag(
'preload', null,
$url,
null,
array('as' => 'style')
);
if ($this->async) {
$cs->registerLinkTag(
'preload', null,
$url,
null,
array('as' => 'style')
);
}
$cs->registerLinkTag(
'stylesheet', 'text/css',
$url,

Loading…
Cancel
Save