Official response from Matthew Pancione
Yes. You can upload your own scripts under Websites > Theme > Files.
NationBuilder comes with the latest version of jQuery, and Tipsy installed and available on any page.
Other custom scripts are only loaded if the particular page being opened requires it so we can reduce load times, but they are not scripts that you would be using to customize a theme.
How would you tag this suggestion?
Do you like this suggestion?
Hehe :) Im a creature of habit! Coming from Wordpress, I always use absolute pathing, so a bit to wrap my mind around.
Jake, refer to the custom theme documentation for more information on how to upload and reference your .js files – http://nationbuilder.com/theme_documentation
Ugh, I should’ve searched more. So to use external JS, as Matthew mentioned, upload them. Then just reference the file relatively; aka not an absolute url (no http://www.yourdomain.com). NationBuilder will figure out the pathing for you.
In fact, you cannot use external JavaScript files, unless you host them on a CDN. There is no way in the current GUI to get the filepath of the JS file.
What is the path to the JavaScript though once it has been uploaded?