It's a performance boost, albeit a small one. It (the browser) prefetches the domain so that when you request something from that domain (e.g. JS, CSS, fonts, images) it will already have the DNS information.
This doesn't have to be just for third-party scripts either, I also use it on subdomains of my website such as assets.myapp.com.