Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Austin Whipple29,725 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.