Spiral galaxies built their parts at different times
The situation with spiral galaxies is apparently very different. The bulges of these galaxies formed early, like the elliptical galaxies. However, the disks formed later (remember that the stars in the disk of the Milky Way are younger than the stars in the bulge and the halo) and still contain gas and dust.