Disclosed is a method of preparing a hair care composition comprising a step of controlling temperature when adding antidandruff agents. The method of the present invention provides reduced agglomeration of antidandruff agents selected from metal pyrithiones.Linvention concerne un procédé de préparation dune composition de soins de cheveux, comprenant une étape de régulation de la température lors de lajout dagents antipelliculaires. Le procédé de la présente invention comprend lagglomération réduite dagents antipelliculaires sélectionnés parmi des pyrithiones métalliques.