Simple conditional resource loader