Yes, cheerio.load
is synchronous and you don't need any callbacks for it.
request(url, function (err, resp, body) {
if (err) {
return console.log("Error!: " + err + " using " + url);
}
var $ = cheerio.load(body);
// do stuff with the `$` content here
});