VID-2015 only loading assets once

This fixes an issue where galleries were being loaded twice inside the classic editor preview. 
Why not use a private static variable here instead of a global?