script loading

2_async

However, accessing a globally available function from the script loader is not so straightforward in Angular.

Also, since we are usually targeting performance, we prefer not to load things until they are actually needed.

Which leads us to...

dynamic script loading!

dynamic asynchronous script loading!