Why does my website takes so long to load despite Good Yslow score. I am using YSlow and gtmetrix to test the speed of my website. I have scored 91% in Page Speed Grade and 89% in YSlow. But the Page load time: 4.67s which is relatively very slow. I have searched everywhere else with similar issue as mine, and it seems no one has found the solution to this yet.
Asked
Active
Viewed 157 times
-1
-
1Impossible to help you without a link to your website. – Luke Peterson Jun 21 '14 at 07:43
-
The first request to retrieve your HTML to my machine took 4.3 seconds. Your performance bottleneck isn't on the front-end, it's in the PHP. Troubleshoot that first. – Luke Peterson Jun 21 '14 at 07:46
-
Well I do I find the specif part of my code that is causing this? – user3740975 Jun 21 '14 at 07:48
-
@user3740975 Very often when the web response time is multiple seconds, bad database queries are a big reason. I'd run your database queries manually and see what turns up. – Joachim Isaksson Jun 21 '14 at 07:49
1 Answers
1
You have 19 requests, totaling 5.3 seconds. The first one took 4.3 seconds (the HTML) with the remainder being the remaining assets including your JS, CSS and images.
Your performance bottleneck isn't on the front-end, it's in the PHP. You need to investigate that side of things a little further. You need to narrow it down to which piece of code is causing the issue. Perhaps you have some SQL which is taking a long time to load, in which case, try turning them off to confirm this is where your problem lies.

Luke Peterson
- 8,584
- 8
- 45
- 46
-
How to I investigate it? Is there any other software that I can use to find what is causing this? – user3740975 Jun 21 '14 at 07:49
-
Break it down and analyse each part of your code. You could start by commenting our everything, then progressively adding in functionality one piece at a time. This will tell you where the problem is. You probably don't need extra software to help with the analysis at this stage. – Luke Peterson Jun 21 '14 at 07:51
-
-
By all means post a new question if you find another area of your program which is causing problems. However my money is on an unoptimised SQL query. ;) – Luke Peterson Jun 21 '14 at 07:55