Manual:$wgResourceLoaderUseESI

Details
Enable embedding of certain resources using Edge Side Includes. 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.