JavaScript console.log causes error: “Synchronous XMLHttpRequest on the main thread is deprecated…”

后端 未结 21 1730
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 09:26

I have been adding logs to the console to check the status of different variables without using the Firefox debugger.

However, in many places in which I add a

21条回答
  •  感情败类
    2020-11-22 09:39

    It was happening to me in ZF2. I was trying to load the Modal content but I forgot to disable the layout before.

    So:

    $viewModel = new ViewModel();
    $viewModel->setTerminal(true);
    return $viewModel;
    

提交回复
热议问题