Manual:$wgResourceLoaderUseESI

Details
Enable embedding of certain resources using Edge Side Includes (ESI). This will improve performance but only works if there is something in front of the web server (e.g. a Squid or Varnish server) configured to process the ESI.