Why does the site load so slow? [answered]

I've created a fresh install of C5 on a new server - something I haven't done for a while.
I found that when I applied my custom theme the page load ground to a halt - both on the front-end and dashboard. When I switched back to the default Elemental theme everything was perky again.

In case someone else has this same issue, I used this free tool -https://github.com/a3020/speed_analyzer/... - to identify what was the slow points within the page causing these problems. Interestingly the cause was remarkably simple - my theme had coded in paths to favicons which I had not created yet and C5 was throwing a 404 error for each of these, taking around 4 seconds per error - which was eventually causing the server to run out of memory. I also found that C5 was looking for a few theme files (strangely) in the "concrete" folder (I've got some more investigating to do on that) and once those dummy files were temporarily uploaded to the expected paths, everything was back to normal speeds.

Took a little while to work this out, so hopefully it saves a few gray hairs if you're in the same situation.


View Replies:
mnakalay replied on at Permalink Reply
Thank you for sharing. I noticed that favicon issue a while back but I would never have thought it would take a full 4 seconds. That's crazy
stewblack23 replied on at Permalink Reply
Custom themeing in C5 is a little bit of an art. It took me a while to get my theme working fast and efficiently on all my site builds. Thanks for sharing your issues.