I learned how to code at university, so I've been at it since 2014. I've dabbled in open source contributions but would like to get into it more. Other than 1's and 0's, I love to travel.
You are correct that Promise.all is the main driver in reducing time. I'm simply trying to illustrate how you could use IIFEs together with Promise.all. Another perfectly valid way to speed up execution would be to create normal async functions and use the returned Promises from those functions in Promise.all. This method just short cuts that and allows you to execute the code using an IIFE while still awaiting it.
Simply an alternative to traditional refactoring using functions. Also I don't see much about IIFEs and wanted to write about them. I'm sorry if the title was misleading.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You are correct that Promise.all is the main driver in reducing time. I'm simply trying to illustrate how you could use IIFEs together with Promise.all. Another perfectly valid way to speed up execution would be to create normal async functions and use the returned Promises from those functions in Promise.all. This method just short cuts that and allows you to execute the code using an IIFE while still awaiting it.
Simply an alternative to traditional refactoring using functions. Also I don't see much about IIFEs and wanted to write about them. I'm sorry if the title was misleading.