Add prepare() method to allow preparing SVG element before preloading

This allows us to embed the SVG content for all pages we are about to
preload synchronously to avoid a throbbing spinner during realtime
progress.