Prevent loading resources more than once at a time