main.
are loaded lastlib/
directory are loaded next nav.html
main.html
client/lib/methods.js
client/lib/styles.js
lib/feature/styles.js
lib/collections.js
client/feature-y.js
feature-x.js
client/main.js​
main.html
is loaded second because HTML templates are always loaded first, even if it begins with main.
, since rule 1 has priority over rule 2. However, it will be loaded after nav.html because rule 2 has priority over rule 5.client/lib/styles.js
and lib/feature/styles.js
have identical load order up to rule 4; however, since client
comes before lib
alphabetically, it will be loaded first.