hack to dispatchEvent when all resources have been loaded
cleaner hack