Deferred XRef Loading

Hey all,

I want to create something similar to RPManager where XRefs are disabled in your working scene but they get enabled at render time.

My initial idea is to use some pre/post render scripts to do "enable all" but I'm already using that for some other tools to change object visibilities.

I did also consider using the prerender callback but I understand this would have to be set up for every new file?

How would you guys approach this?