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

update-to-4.6.2 v4.6.1-r2
parent 8f02f1f89a
commit b23821907e
  1. 14
      protected/components/BootstrapComponent.php

@ -155,12 +155,14 @@ class BootstrapComponent 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