If you add them before, they will break down and blend into the cookie dough. Then, you will not have funfetti cookies, you will have streaks in your cookies instead. Also, mixing too much will make your cookies dry and tough, as stated above. After you mix in the flour just enough, so the streaks of white are gone, fold in the sprinkles with a spoon or spatula.