A loading problem with site


I am running a wordpress multisite with buddypress and recently we have been getting these loading problems of the side where the top bar, the sidebar and the footer doesn’t load. After a refresh of the site however they do load without a problem. This also doesn’t happen on every site load but quite frequently. Is there anyway to debug somehow to find what on the site that is causing this problem?