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

后端 未结 21 1732
爱一瞬间的悲伤
爱一瞬间的悲伤 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:44

    I get such warning in following case:

    1) file1 which contains . Page has input fields. I enter some value in input field and click button. Jquery sends input to external php file.

    2) external php file also contains jquery and in the external php file i also included . Because if this i got the warning.

    Removed from external php file and works without the warning.

    As i understand on loading the first file (file1), i load jquery-1.10.2.js and as the page does not reloads (it sends data to external php file using jquery $.post), then jquery-1.10.2.js continue to exist. So not necessary again to load it.

提交回复
热议问题