a body headliner

Im ready to put in my windshield and gasket, just wondering if i need to put the headliner in first or can i do it later. Is it better to install with windshield out?