I am currently implementing an interface with a service employee. Since I need several pieces of code for my service worker, I decided to use the importScripts function from the standard one.
I really don't understand why importScripts was added to this standard, since modules became part of the ES6 standard about 3 years ago (although most browsers are still missing if the flag is not used).
Can someone clarify this? I assume this is related to error handling, etc ...
source
share