Hide the visibility settings with CSS rather than JS on page load to avoid FOUC-type thing