How to track a particular page in order to address the loading speed issue

Here is the diagnosed problem in the words of hosting provider on chat: ‘The site just wants to load javascript from affiliates.xxx.com and all of those requests the site makes to affiliates.xxxx.com don’t work and take a very long time to actually try and work bringing the site’s loading speed down.’

Will changing the theme address this issue?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)