Adding resources and using callbacks on resource loader