JSFiddle - React, Tailwind, and code Playground
JavaScript
$.support.cors = true;
try {
$.ajax({
url: 'http://code.jquery.com/jquery-2.1.1.js',
type: 'GET',
async: false
});
} catch(ex) {
alert('error 1!')
}
try {
$.ajax({
url: 'http://code.jquery.com/jquery-2.1.1.js',
type: 'GET',
async: true
});
} catch(ex) {
alert('error 2!')
}