Add loader for resource. TODO: Make async and add splash.