Promise all
This method allows to do request in parallel
async functionName(){
let [ req1, req2 ] = await Promise.all([
fetch(`https://url`),
fetch(`https://url2`)
])
}
This method allows to do request in parallel
async functionName(){
let [ req1, req2 ] = await Promise.all([
fetch(`https://url`),
fetch(`https://url2`)
])
}