Questions & Answers about tā xǐhuan zài jùhuì shàng tiàowǔ.
Mandarin usually puts the location or setting before the main action.
So the structure is:
她 + 喜欢 + 在聚会上 + 跳舞
she + likes + at parties / at a party + to dance
A helpful pattern is:
Subject + 喜欢 + 在 + place/event + verb
In English, we often put the place after the verb: She likes dancing at parties.
In Mandarin, it is more natural to put 在聚会上 before 跳舞.
她喜欢跳舞在聚会上 sounds unnatural in standard Mandarin.