i’ll give you some js code first, so i don’t need to explain everything
fetch('someurl', {
method: 'GET'
}).then(function(response) {
//return response
}).then(function(responseObject) {
//return object
}).then(function(responseObject) {
console.log('this will be shown afterwards');
});
console.log('this will be shown first');
so the question is, is there a way to finish all the fetch operations before the rest of the code is executed?