Weirdly -- although the existence of one doesn't depend, really, on the existence of the other -- the refrigerator and the milk carton developed in parallel. The first refrigerators were tested in the 1910s. Meanwhile, the inventor of the milk carton (warning: this title is disputed by about a million people) took out his patent in 1915.