splash: run svg element resize code once at load time