Should I apply to the job before or after asking for a referral?

I have only requested one referral from this site. However, I am unsure if I should apply to the position before requesting a referral or afterward. Any suggestions?

Usually after