Manual:$wgImagePreconnect

Details
On pages containing images, tell the user agent to pre-connect to hosts from $wgForeignFileRepos. This speeds up rendering, but may create unwanted traffic if there are many possible URLs from which images are served.