Newborn screening is generally performed within the first 24 to 48 hours after birth. This timing is crucial because it allows for early detection and intervention, reducing the risk of health complications that might arise if a condition goes untreated.