Skip to content

Instantly share code, notes, and snippets.

@theroux
Last active December 20, 2015 12:39
Show Gist options
  • Save theroux/6132516 to your computer and use it in GitHub Desktop.
Save theroux/6132516 to your computer and use it in GitHub Desktop.
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