src/assets/AdminAsset.php
public function registerAssetFiles($view)
    {
        if (\Yii::$app->request->isPjax) {
            return parent::registerAssetFiles($view);
        }

        parent::registerAssetFiles($view);
    }
public function registerAssetFiles($view)
    {
        if (\Yii::$app->request->isPjax) {
            return parent::registerAssetFiles($view);
        }

        parent::registerAssetFiles($view);
    }
Registers this asset bundle with a view.
@param View $view the view to be registered with
@return static the registered asset bundle instance