Made compatible with latest version of Classy where cas_updateStyle requires the view to be on screen