开发者

Index file drastically slows page loading time

开发者 https://www.devze.com 2023-03-10 19:21 出处:网络
I\'m trying my hardest to get this site\'s load time blazing fast. I\'ve taken good steps in caching. Every static element on the page is cached so it renders immediately. My page loads in 1 second, b

I'm trying my hardest to get this site's load time blazing fast. I've taken good steps in caching. Every static element on the page is cached so it renders immediately. My page loads in 1 second, because of the index file:

Index file drastically slows page loading time

How can I cut down the load time of this index fil开发者_高级运维e. I questioned yesterday, and the answer worked on my localhost, but I'm now on the server.

Here's the site: http://thenozzle.net/login

username: admin1 password: admin1

Please troubleshoot this. Sites like youtube, Facebook and google have this element loading in 400 ms. How can I do this?

Both my server and I are on the west coast U.S.


I did a few tests and the average load of index is 700ms for me. Are you using any server side technology? php, mysql? There are quite a lot of reasons for a site being slow.

First check if creating a completely empty html page takes 700ms or something around there. If it does, then your server has some latency issues. Id recommend talking with your host provider and see what they suggest.

If it works fine and you are using server side technology, use simple tests to benchmark each part of your website. (set a timer before the first line of code and another after certain operation, then subtract the later from the former, you end up with specific data of how long each part took)

Otherwise follow Vap0r suggestion, maybe that helps.

Good luck!


May I suggest changing your cache-control header? I don't do this much, but with a load time of 680ms, your site worked quite well. But, if you'd like, here's some info on modifying cache control for efficiency


Your problem seems to be server side. I would recommend using a profiler such as xdebug to see what is taking the longest time, then try to optimize that. Feel free to ask follow-up questions on that.

0

精彩评论

暂无评论...
验证码 换一张
取 消