Under the roof deck when the ducts are up there
This suits houses with ductwork or a furnace in the attic, because foam on the underside of the roof brings that space inside the house instead of leaving the ducts out in the heat and cold. Foam costs more than sealing the gaps and topping up loose fill, so if your ducts aren't in the attic, I'll usually point you to the cheaper route.

