How is sound usually added to cartoons during the production of them?

Hi. I am interested in producing my own animation and I am curious about this. I know if there's going to be any spoken dialogue in a cartoon, the voice actor or actors record all the dialogue first and then the animators work around the spoken dialogue to make the animation fit it. Animators have to make sure the character's mouth movements (or head movements, in the case of characters like Marvin the Martian), fit the recorded dialogue. They have to make sure the lip sync and/or head movements fits and looks right. How is sound generally added? Do animators always animate actions first and add sound later? Or do they ever record sound and then create animation to match it? To me, it would make sense to look at storyboards and scripts and record sounds first like the dialogue, to get the sense of the timing of the final project and create animation around the sound. Please help- thank you.
Answers

Rebel With A Cause

Sound effects are added in post production, in a process known as Foley work. It is the same in live action film and animation. https://youtu.be/j6bVusny-Xk https://youtu.be/0IPxIvbc_cs

Raditz

It usually depends on which format the animation is going to be produced: Movies or TV series. For movie formats, the recordings usually takes place before the animation was made. So the voice actors, with the help of the director, need to use their imagination and try to visualize about the scenes. For TV series, they usually use images from the scriptboard to help visualizing the scenes, and also with the help from the producer. There's also some cases that some changes to the scenes or needs a retake/re-record in late production, whether for movie or TV series. During this case, they usually used finished animation footage to help the voice actors improvising their lines.