Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Website loading so slowly

Hello, I've been creating a website for a client of mine and have problems with the website loading slowly. When I take a look at it through pingdom tools there are these png images that I use on the site, all 10 kb and bellow that the server apparently takes a lot of time to connect to. Why is this? It there a problem with the server where the website is hosted or is there a problem with my resources or my code?

Pingdom test

I've tried to reduce the requests to the server as much as I could and right now I just don't know what else to do. It's loading so very slowly! I've built similar sites before and never had to deal with such long load times.

The website I'm working on is this: http://medhunt.co.uk/

6 Answers

Did you try different server?

I've taken a look at the pingdom report. Something is causing the server to respond very slowly and the problem is therefore outside of your control. .

I believe that you are using http://www.webhosting.uk.com/ as the host. Sorry to be so blunt but with website hosting you get what you pay for. I imagine that you are on a shared hosting plan and so another client on the same server could be hogging all the resources. I would contact the host or look for hosting elsewhere.

Chris Howell
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Chris Howell
Python Web Development Techdegree Graduate 49,703 Points

I am still working on my WordPress site, but as I have learned over time with working with it. Depending on your permalink structure and whether you have a ton of pages, wordpress queries can eventually become heavier because the way wordpress searches through post types and taxonomies. 1 URL can technically have multiple ways of getting to it, there is a term for it I cannot remember off the top of my head.

Though the site you are working on doesn't appear to have a massive archive of pages like a news site or such would have. So I cant imagine that would be causing that huge wait time and that 6second connect time with those very small .png files.

So I would say you could be correct as far as where it is hosted at. But something else you may want try if you are not already doing this, is using a wordpress plugin that caches your pages, this way when people visit your site queries arent constantly taking place. So itll reduce the queries to the database, but the plugin will create static pages from your dynamic content and deliver those pages to the end-user. This will speed up content delivery. There is a section about a caching plugin here on Treehouse under WordPress library about Building Custom WordPress Themes that Zac Gordon goes over.

Give me a few minutes and I will find you the exact link to the lessons on this.

If you already are using a cache plugin for your site, then I would definitely call your web hosting company about it or if you have the ability to check the error logs on your hosting server. Some places give you an admin panel that will let you view error logs and have their own performance tests built in.

Chris Howell
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Chris Howell
Python Web Development Techdegree Graduate 49,703 Points

Also take note that your main slider below your banner and navigation links, is showing perfectly on Internet Explorer 10+. But on my preferred browser ( Mozilla FireFox ), it is still positioned under the banner and navigation links and pushed to the right of the screen to where I would have to scroll horizontally right a way to see what it is. Where your container for the content area stops on the right side is where the slider begins and continues pushed off to the right, if that makes sense.

I am unsure about how it looks on Google Chrome, I don't have that installed on this PC.

Here is the link to the caching plugin.

Thank you so much for the answer and comments! I tried uploading the website on another server hosted with another hosting provider and it loads so much faster so I will advice this to the client and ask them if they would consider changing. Thank you again all for your fast responses, and thank you Chris. I will take a look at the slider issues.

Hi Hanna Öberg

I just tested your site and it's loading quite fast at this very moment (Germany & 150 MBit connection). Maybe there are so many customers on this server that the average data transfer rate constantly changes.

Looks like your server is returning a lot of 500 errors

http://wheresitup.com/results/5352d0c78c3dcf4244e58966

Time to contact your hosting provider's support, that's what you pay them for.