code: public function registerAssetFiles($view)
      {
          if (\Yii::$app->request->isPjax) {
              return parent::registerAssetFiles($view);
          }
  
          parent::registerAssetFiles($view);
      }
docs: Registers this asset bundle with a view.
  @param View $view the view to be registered with
  @return static the registered asset bundle instance