var Http = new XMLHttpRequest(); var url='https://jsonplaceholder.typicode.com/posts'; Http.open("GET", url); Http.send(); console.log("Marker 1") console.log(Http.responseText) console.log("Marker 2") Http.onreadystatechange = (e) => { console.log("Marker 3") console.log(Http.responseText) console.log("Marker 4") } console.log("Marker 5")