I want to get an HTML content of a website. I've tried few things, but most of them are kind of outdated. I'm looking for the most modern and quick way to get response from HTTP GET request.
I'm programming in a chrome extension ecosystem and try to get html of ~120 websites. I know that this is not easy task at all and can't be done within a second or two, but I want to it to make it complete a work within a minute.
I've tried
function httpGet(url) {
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", url, false); // false for synchronous request
xmlHttp.send(null);
return xmlHttp.responseText;
}
Which takes > 2 minutes.
Thanks.