Optimize cross-domain resources