So why RequireJs?
- Loads dependent scripts on demand
- Explicit dependency referencing
- No longer need to reference scripts manually in the correct order by dependency
- Combine and bundle scripts using RequireJs optimizer
- Loose coupling
- Dependency referencing (Refer to other modules)
Till next time...