"And it's also useful to know how Meteor decides in which order to load your files:
Files in /lib are loaded before anything else.
Any main.* file is loaded after everything else.
Everything else loads in alphabetical order based on the file name."
In the documentation:
"here are several load ordering rules. They are applied sequentially to all applicable files in the application, in the priority given below:
HTML template files are always loaded before everything else
Files beginning with main. are loaded last
Files inside any lib/ directory are loaded next
Files with deeper paths are loaded next
Files are then loaded in alphabetical order of the entire path"
The documentation has different infos about that:
In the book:
"And it's also useful to know how Meteor decides in which order to load your files:
Files in /lib are loaded before anything else. Any main.* file is loaded after everything else. Everything else loads in alphabetical order based on the file name."
In the documentation:
"here are several load ordering rules. They are applied sequentially to all applicable files in the application, in the priority given below:
HTML template files are always loaded before everything else Files beginning with main. are loaded last Files inside any lib/ directory are loaded next Files with deeper paths are loaded next Files are then loaded in alphabetical order of the entire path"