A client is using Sharetribe which allows you add custom JS via admin, but only in the head. I want my script to load after jQuery, but jQuery is loaded at the end of the bo
Tell your code to wait for the DOM to finish loading:
window.onload = function() {
var script = document.createElement("script");
script.type = "text/javascript";
//....
}
Or using jQuery:
$(document).ready(function() {
var script = document.createElement("script");
script.type = "text/javascript";
//....
});