script loading

There are two ways, thus, to know when your script is loaded.

1_sync

You can load the script synchronously.

			
					
			
	

This is not advisable, since it can slow down your app, and in the case the script is never loaded, well, then a great bit of your app is never loaded.