Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Austin Whipple29,700 Points
It's pretty hard to tell in any automated fashion. If you're working with any jQuery-based plugins, then those scripts will certainly be dependent on jQuery and must be loaded after jQuery. It's rare that two different plugins will depend on each other unless specified. As for other site-specific scripts, it's always a good idea to include them last, so you can work with objects and variables defined in all libraries and plugins.
Ultimately, the best indicator for broken dependence is if you get "____ is undefined" errors in your browser console. That error is a good indication that the browser is missing required files or loading things out of order.
Jeff Sil451 Points
Great, thank you for the explanation! Some of this stuff is confusing, glad to have help.