CST-28: Prevent FOUS on Media Gallery load