doc: how to load resources