This is part 2 of the series. This is a series dedicated to explaining a bunch of helpful web development tools in the simplest language possible. For a full recap, or if you start feeling confused, check out part 1. Note that the term ‘app’ I use in this series could easily be changed to ‘website’. These days, most complex websites are web apps.
Require.js – Why should you care?
Because it makes your app: faster (hence giving a better user experience), better organized(making it easier to improve your code) more scaleable (fewer updates, more paydays) and because boffins use it – so you should try and understand how it works so you can learn from others.
OK. We’re going to continue working on the simple web app we were looking at in part 1. Here’s the new source code.
Note that all text after “//” is comments to help you understand the code: