这是我的页面网址:www.1800-gifts.com/USA/Cake-Delivery和其他类似的页面都加载非常慢,即使我有缓存,压缩启用,我试图打电话给爸爸这是我的托管服务提供商,但他们没有积极回应。
开发人员告诉我这是一个服务器问题,但我没有在服务器中发现任何问题它没关系。
本网站是在asp.net 4.0开发的,数据库是mssql 2012 r2。 服务器是VPS,有2 GB的ram,我在数据库中有2 GB的数据,有些表包含超过100k的记录。
请查看我的网站并给我建议,我已经检查了谷歌网页速度和其他工具,他们都说不同的意见。
答案 0 :(得分:0)
I am not sure if this is the cause but if you enable developer mode (F12) and run the site in chrome you will see that the cake-delivery page is the one that is causing the loading time (44s). You will also notice that there are JQuery errors on the page.
This could possibly be part of the problem.
EDIT:
After looking at the linked page I think Erik is right, JQuery is not the issue.
The person that is developing the site needs to revisit the way the page works completely. There is a massive amount of operations happening in the page load of the page. The operations that are used are also hack and slash ways of doing things that there is already built in methods for. This is simply a page taking forever to load due to bad coding.
I would suggest the developer returns to the drawing board.
答案 1 :(得分:0)
有许多很棒的工具可以查看您的页面,并告诉您它可能出现的问题。例如,使用GTmetrix分析您的页面会为您提供this。您还可以立即开展重要提示,例如:
还有更多。我最近还写了一篇文章,展示了web performance
的重要优化查看页面的瀑布图(也可在GTmetrix上找到)显示最大的问题确实是您的服务器。接收第一个请求的答案(第一个字节的时间)需要16秒。显然有些不对劲!
您的服务器上有很多可能出错的地方。您应该测试数据库查询(它们是否很慢?页面加载执行了多少?)。