Thanks Konstantin,
Yes, that is the behaviour I am looking for. I see you use spin.min.js is that something you developed? So that loads and runs and then you load application.js and don't call the load function until after the <body> has been processed.
Thank you.
Simon