October 2015
Intermediate to advanced
520 pages
12h 34m
English
CHAPTER 5
![]()
RequireJS
It is more productive to think about what is within my control than to worry and fret about things that are outside of my control. Worrying is not a form of thinking.
—Peter Saint-Andre
While JavaScript now plays a far more significant role in web applications, the HTML5 specification (and therefore modern browsers) does not specify a means to detect dependency relationships among scripts, or how to load script dependencies in a particular order. In the simplest scenario, scripts are typically referenced in page markup with simple <script> tags. These tags are evaluated, loaded, and executed in order, which means that common ...