web developer

[ajax] 오류 : Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. 본문

JavaScript

[ajax] 오류 : Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience.

trueman 2021. 10. 21. 15:16
728x90
728x90

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.

 

XMLHttpRequest Standard

Abstract The XMLHttpRequest Standard defines an API that provides scripted client functionality for transferring data between a client and a server. Table of Contents 1 Introduction 1.1 Specification history 2 Terminology 3 Interface XMLHttpRequest 3.1 Con

xhr.spec.whatwg.org

 

async: false 옵션을 지워주면 됩니다. (기본값이 true 입니다)

728x90
728x90
Comments