Instead of modifying the master page, I've injected the following custom actions to add references to JavaScript files on my page:
- jquery-1.12.4.min.js (Sequence=1000)
- bootstrap-3.3.7.min.js (Sequence=1001)
- myCustomJS.js (Sequence=1002)
As you can see, I have jQuery (1000) first, followed by Bootstrap (1001) then my custom script (1002). When the site loads however, I get the following error:
Uncaught Error: Bootstrap's JavaScript requires jQuery
So it seems jQuery hasn't loaded completely yet before Bootstrap ran. My custom script also runs into the issue where it can't resolve what $ or jQuery is. Any ideas on how to resolve this?