When did your toddler start accepting hair washing without a meltdown?

My 2.5yo may have just given me permanent hearing damage.