Website Loads Slowly (between 10 and 50 seconds) [Solved]

Permalink
Update: Turns out, it was the server!

---

I've made a website for a company recently: huisartsenaanzee.nl
But the last few days loading times have been through the roof. I checked my images, but most of them are below 100kb (with the biggest exception being 200kb) In total, the entire website uses about 1mb in images (some jpeg and some png).

I noticed that loading times become better late at night, so I'm thinking it's a server issue. Though I'm not sure.

I tried looking for way to optimise the site (turned on all caching options), but it's still not great. Loading a page can take up to 10 seconds. Logging in as admin can take up to 50 seconds.

 
JohntheFish replied on at Permalink Reply
JohntheFish
Looking at the network tab of a browser dev console, the 40s+ waiting is all the TTFB for the html.
ghoststalker195 replied on at Permalink Reply
As someone who's only just started webdevelopment. How exactly can I fix / change this?
Where exactly lies the problem? images? server? poor html?
JohntheFish replied on at Permalink Reply
JohntheFish
The primary cause is unlikely to be images. If you look at the network data, once the html has loaded, the images follow very quickly.

Things that can cause long ttfb on c5 sites are:
- long chains of page redirects
- auto-nav and page list settings that build a nav tree or list that is much bigger than is actually displayed.
- database on a different server to the c5 site
- (recently reported by Remo) Large numbers of global areas above what are shown on any one page (such as on a multi-lingual site with many languages)
- interference from other sites on a shared hosting plan.

I am sure other c5 developers will post some other things you can investigate.

You need to g back through any changes (adding pages, editing existing blocks, installing addons, core updates, changes to server configuration and host service) you have made since the speed became a problem and review those w.r.t points such as those above. Something has changed to cause the problem.
ghoststalker195 replied on at Permalink Reply
-There shouldn't be any re-directs
-There is no auto-nav, just 1 page list with 2 blog entries (max 4 entries on display).
-Database is hosted on the same server
-There's only 2 global areas (1 of which is empty) The other is 'Contact Details'
-Not multi-lingual
-Interference with other sites <- this is what I'm worried about. I'll contact them to see what's up.

Thanks for the help so far by the way. If anyone else has feedback, please let me know!
I'll update this thread once I figured out the problem.