Hiding grid and manually triggering layout in order to hide a possible FOUC.