The development of costly traits such as immune function and secondary sexual traits is constrained by resource availability. The quality of developmental conditions and the availability of resources in ontogeny may therefore influence immune system …