Prevent content flashing of elements that are supposed to be hidden #wip