使用XML文件加载网站速度太慢 [英] Website loading too slow with using XML file

查看:121
本文介绍了使用XML文件加载网站速度太慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的网站存在问题,加载速度太慢。我们使用xml文件来显示带有图像和细节的信息网格,但页面加载速度太慢,我们进行测试,这就是结果:



测试链接



我们比较两个页面和两个页面加载缓慢。



有人知道为什么服务器响应太慢。我们做了一个tracert测试,似乎很好。



我尝试过:



我们与托管服务提供商交谈,他们告诉我们托管很好。

We have a problem in our website, it is loading too slow. We use xml file to display a grid of infos with image and details, but the page load too slow, we make a test and this are the results:

Link of the test

we compare 2 of our pages and both are loading slow.

Do anybody have an idea why the server response too slow. We make a tracert test and it seems to be fine.

What I have tried:

We speak with the hosting provider, and they told us that hosting is fine.

推荐答案

所以我在firebug看到的一些奇怪的东西是以下



Firebug - 页面加载



您的初始页面加载时间为7秒,应该花费几毫秒。



Firebug - 网络标签 - 回复 [ ^ ]



然后在firebug的Net选项卡上,您可以查看响应。查看响应,这可能是您的问题的原因。它似乎是你的页面,但以字节传回?这是巨大的,我无法复制和粘贴它。但是firebug让我可以选择在新选项卡中查看响应,当这样做时,URL看起来像这样:



您的网站网址以字节为单位 [ ^ ]



所以我认为你正试图做一些动态加载或导致你的网站超级慢的东西。我对你的项目一无所知,但考虑到我已经完成了一些小问题......第二和第三张图片可能是你的慢页加载时间的罪魁祸首。另外注意,当我尝试在第三张图片上查看源代码时,我的浏览器崩溃。



我会重新考虑你如何为初学者动态加载你的网站。然后进行谷歌搜索,了解如何优化网站加载时间,因为您可以将一些javascript移动到HTML的底部,然后缩小css / js文件以使它们开始变小。
So a few odd things I see in firebug are the following

Firebug - Page load

Your initial page load is taking 7 seconds with what should take milliseconds.

Firebug - Network tab - Response[^]

So then on the Net tab in firebug, you can view the response. Looking at the response this is what is likely a cause of your issue. It appears to be your page but passed back in bytes? It is huge and I cannot copy and paste it. But firebug gives me the option to view the response in a new tab and when doing so the URL looks like this:

Your site URL in bytes[^]

So i think you are trying to do some dynamic loading or something that is causing your site to be super slow. I know nothing about your project but given the little poking around i've done...that second and third images are likely the culprit to your slow page load times. Also side note, when i try to view source on the third image, my browser crashes.

I would rethink your approach of how you are dynamically loading your website for starters. Then do a google search on how to optimize website load times as you can move some of your javascript down to the bottom of your HTML, then also minify css/js files to get them smaller to start.


这篇关于使用XML文件加载网站速度太慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆