We recommend enabling GZIP as it reduces the size the user needs to load when the piwik.js file is requested. For the standard Matomo (Piwik) tracker, this will reduce the size from about 60KB to 20KB.
<link rel="dns-prefetch" href="//example.innocraft.cloud">
To boost the loading of the Matomo (Piwik) tracking file, you can add the following HTML into the header of your website:
<link rel="preload" href="https://yourpiwikdomain.com/piwik.js" onload="embedTracker()" type="script" crossorigin>
<head> of your website, this should not be needed.
More performance improvements
Read our first blog in the series at Different ways of embedding the Matomo (Piwik) tracking code for faster website performance