Really long initial load time

When this template is activated and in use, any page requests on the main site will take over 20 seconds per click, and then load in all other assets instantly.

Switching the template to another one will immediately fix the issue, is there something I need to amend within my site to get this to fix? Or at least find a way to identify what’s causing this to happen?