#
#
# artur #2016-04-06 23:48:27
JavaScript
# artur #, 2016-04-06 23:48:27

How to get rid of Synchronous XMLHttpRequest Warning?

Hello!

Installed the EJS plugin ( ejs.co ) I

use it as written in the manual:

var messageBody = new EJS({url: templatesPath + 'main/systemMessage.ejs'})
                        .render({message: 'Добро пожаловать!'});

                this.showMessage(messageBody);


From chrom I get:

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/ .

refers to ejs.js:477 on it:

var request = new EJS.newRequest()
    request.open("GET", path, false);


So does everyone?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question