There are a few possible reasons that Matomo (Piwik) could be slow to load:

You may also be interested in: will the Matomo Analytics JS Tracker slow down my website?