If disable asset bundle (for example for ajax requests), if js created through init() this js assets will be forced registered anyway (although it should not)
if (\Yii::$app->request->isAjax) {
$renderMethod = 'renderPartial';
\Yii::$app->assetManager->bundles = false;
}
If disable asset bundle (for example for ajax requests), if js created through init() this js assets will be forced registered anyway (although it should not)
Pjax response: