Tabs don't open in the background any longer in Safari
You can follow these steps
1. Open preference in safari
2. Click on tabs.
3. Uncheck the option "when a when a new tab or window opens make it      active".

Hope this will works.