momosecurity/FindSomething

ajax请求占用主线程导致某些网站功能不正常

Closed this issue · 1 comments

开启扩展的情况下,无法正常登录AWS
Console 提示信息:
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/.

解决方法,修改 content.js,将ajax改为异步请求 :

        $.ajax({
                url: url,
                type: 'get',
                dataType: 'text',
            })

感谢提交建议,已解决。