Order that DOM-based routing loads files?

When loading more than one js file for a page - by adding a new body class for each additional file that should be loaded, and then setting up the new routes in main.js - is the order that the files are loaded dictated by the order the classes appear in the source code?

It seems that way from the work I’ve been doing today, but I’m hoping someone can clarify. Changing the order that the dependencies, or the routes, are listed in main.js doesn’t seem to make any difference.

This topic was automatically closed after 42 days. New replies are no longer allowed.