Sounds download & play when they are encountered in the code (unless set as background sound). You can use Javascript to preload the sounds - see Scripting-only features for details.
Hope this helps. Let me know if you have any further questions.
Geoff @ TechLeap