2.4.3.12. Slow site loading
If your site has been operating quickly for an extended period and then suddenly starts loading slowly, requiring you to wait 10-30 seconds for each page to open, the first thing you need to determine is whether the page is connecting to an external service during loading.
In some Joomla! modules and templates, developers insert code that connects to remote sites to collect statistics or obtain certain data. Over time, the module developer begins to realize the folly of this action, as numerous requests from different hosting servers are directed to their site, and they start blocking the hosting servers from which the requests originate. Meanwhile, your site still attempts to open the developer's site, but it fails to do so. The script has to wait 10-30 seconds until the connection times out. As a result, your site slows down, even though neither you nor the host have changed anything.
You can determine the presence of external connections by analyzing outgoing connections.
If it is not possible to disable requests to the problematic server on the site side, you can try reducing the value of the "default_socket_timeout" parameter in the PHP settings. This parameter determines how long to wait for a response from an external server before the connection is forcibly closed.