My question is simple.
I have some configuration and loading that needs to be done before calling document.ready ().
// initialize ASAP so it loads super fast soundManager.setup({ url: 'swf/', onready: SMOnReadyHandler });
This onready event onready is likely to take, say, a long time to complete.
After THIS, I want to call the document.ready() event listener to load the rest of my page:
$(document).ready(function() {
How to ensure that $(document).ready occurs only after the soundManager.onready handler completes completely?
Many thanks!
source share