fetch sync?

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?

Nope. There is no way to make a blocking fetch call. Sorry!

That’s a shame. Is it planned to offer that functionality?

No. fetch is a (somewhat) standardized API and we intend to follow that standard.

https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API

It is generally considered bad practice to have blocking APIs in JS due to the single threaded nature.