The below view is rendered by ajax and returned from controller to JS which puts view inside correct container :
$page = $this->renderAjax("view", [
"dataProvider" => $dataProvider
]) ;
Yii::$app->response->format = 'json';
return array("error"=>false,"page"=>$page);
View :
<?=
ListView::widget([
'id'=>'dataListId',
'dataProvider' => $dataProvider,
'itemOptions' => ['class' => 'item'],
'itemView' => '_dataItemView',
'summary'=>'',
'emptyText'=>$emptyPage
])
?>
<?=
$this->render("_activeFormPage")
?>
messages?id=1:950 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
But this gives above error in chrome for synchronous XMLhttprequest on full refresh where I simulate ajax by trigger click on button which does ajax and gets above data. As soon as line to render _activeFormPage is commented, error goes away.
How can we get rid of synchronous ajax error since in javascript async has been left to default while making ajax calls from jquery