The near-infrared to ultraviolet continuum of radio-loud versus radio-quiet quasars