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

Web Application Speed

Hi, I am coding a web application that relies on PHP with MySQL, and when I use my app locally with MAMP, my app responds instantly to my actions. But when I use my app on my real website* there is quite a lag.

Why is this, and is there anything I can do to make the non-local version of my app faster, please?

*I’m not sure what the correct term is for this. What I mean is when I’m not running my app locally using MAMP. So if you know the term I am after, please let me know. Thank you :)

1 Answer

Jenny,

There are some tools that you can use to measure your (live? production?) site's performance. It will probably never run as fast as it does on your local machine (since you're sending data a potentially distance where your code is executed by a shared server and then sent back to you), but these will help you find ways to improve your code.

  • Chrome's Developer Tools can give you an idea of what assets are taking a while to load, etc.
  • Google's Page Speed Insights can be really helpful, but requires a little setup.
  • Similar online tools (like GTmetrix) can give you some ideas for improving your speed.

Hope this helps!

I see. Thank you very much Shawn!