optimized social plugin loader