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?

Previous FAQ: How to configure Matomo to handle unexpected peak in traffic?