Last active
December 20, 2015 12:39
-
-
Save theroux/6132516 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Two ways of doing this. | |
OPTION A *** preferred | |
In module, have this: | |
<script type="text/javascript"> | |
Boot.getJS({ | |
src: 'http://se.loc:8888/js/somejsfile.js', | |
defer: 'ready' | |
}); | |
</script> | |
then in somejsfile.js, write JS as normal | |
OPTION B | |
In module, write this: | |
<script type="text/javascript" src="http://se.loc:8888/js/somejsfile.js" /> | |
and then in somejsfile.js, wrap your JS like so: | |
Boot.getJS({ | |
defer: 'ready', | |
callback: function() { | |
//// js goes here | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment