is there an elegant way to determine the size of data downloaded from a website -- bearing in mind that not all requests will go to the same domain that you originally visited and that other browsers may in the background be polling at the same time. Ideally i'd like to look at the size of each individual page -- or for a Flash site the total downloaded over time.
是否有一种优雅的方法来确定从网站下载的数据的大小 - 请记住,并非所有请求都将转到您最初访问的同一域,而其他浏览器可能在后台同时进行轮询。理想情况下,我想查看每个页面的大小 - 或者Flash站点随时间下载的总量。
I'm looking for some kind of browser plug-in or Fiddler script. I'm not sure Fiddler would work due to the issues pointed out above.
我正在寻找某种浏览器插件或Fiddler脚本。由于上面提到的问题,我不确定Fiddler会不会工作。
I want to compare sites similar to mine for total filesize - and keep track of my own site also.
我想比较类似于我的网站的总文件大小 - 并跟踪我自己的网站。
4 个解决方案
#1
7
Firebug and HttpFox are two Firefox plugin that can be used to determine the size of data downloaded from a website for one single page. While Firebug is a great tool for any web developer, HttpFox is a more specialized plugin to analyze HTTP requests / responses (with relative size).
Firebug和HttpFox是两个Firefox插件,可用于确定从一个网页下载的单个页面的数据大小。虽然Firebug对于任何Web开发人员来说都是一个很好的工具,但HttpFox是一个更专业的插件来分析HTTP请求/响应(具有相对大小)。
You can install both and try them out, just be sure to disable the one while enabling the other.
你可以安装它们并试用它们,只要确保在启用另一个时禁用它。
If you need a website wide measurement:
如果您需要网站范围的测量:
- If the website is made of plain HTML and assets (like CSS, images, flash, ...) you can check how big the folder containing the website is on the server (this assumes you can login on the server)
- You can mirror the website locally using wget, curl or some GUI based application like Site Sucker and check how big the folder containing the mirror is
- If you know the website is huge but you don't know how much, you can estimate its size. i.e. www.mygallery.com has 1000 galleries; each gallery has an average of 20 images loaded; every image is stored in 2 different sizes (thumbnail and full size) an average of for _n_kb / image; ...
如果网站由纯HTML和资产(如CSS,图像,flash,...)组成,您可以检查包含该网站的文件夹在服务器上的大小(假设您可以在服务器上登录)
您可以使用wget,curl或某些基于GUI的应用程序(如Site Sucker)在本地镜像网站,并检查包含镜像的文件夹的大小
如果你知道网站很大但你不知道多少,你可以估计它的大小。即www.mygallery.com有1000个画廊;每个画廊平均加载20张图片;每个图像以2种不同的尺寸(缩略图和全尺寸)存储,平均为_n_kb / image; ...
Keep in mind that if you download / estimating a dynamic websites, you are dealing with what the website produces, not with the real size of the website on the server. A small PHP script can produce tons of HTML.
请记住,如果您下载/估算动态网站,则表示您正在处理网站生成的内容,而不是服务器上网站的实际大小。一个小的PHP脚本可以产生大量的HTML。
#2
#4
0
You can download the entire site and then you will know for sure!
您可以下载整个网站,然后您就会知道!
#1
7
Firebug and HttpFox are two Firefox plugin that can be used to determine the size of data downloaded from a website for one single page. While Firebug is a great tool for any web developer, HttpFox is a more specialized plugin to analyze HTTP requests / responses (with relative size).
Firebug和HttpFox是两个Firefox插件,可用于确定从一个网页下载的单个页面的数据大小。虽然Firebug对于任何Web开发人员来说都是一个很好的工具,但HttpFox是一个更专业的插件来分析HTTP请求/响应(具有相对大小)。
You can install both and try them out, just be sure to disable the one while enabling the other.
你可以安装它们并试用它们,只要确保在启用另一个时禁用它。
If you need a website wide measurement:
如果您需要网站范围的测量:
- If the website is made of plain HTML and assets (like CSS, images, flash, ...) you can check how big the folder containing the website is on the server (this assumes you can login on the server)
- You can mirror the website locally using wget, curl or some GUI based application like Site Sucker and check how big the folder containing the mirror is
- If you know the website is huge but you don't know how much, you can estimate its size. i.e. www.mygallery.com has 1000 galleries; each gallery has an average of 20 images loaded; every image is stored in 2 different sizes (thumbnail and full size) an average of for _n_kb / image; ...
如果网站由纯HTML和资产(如CSS,图像,flash,...)组成,您可以检查包含该网站的文件夹在服务器上的大小(假设您可以在服务器上登录)
您可以使用wget,curl或某些基于GUI的应用程序(如Site Sucker)在本地镜像网站,并检查包含镜像的文件夹的大小
如果你知道网站很大但你不知道多少,你可以估计它的大小。即www.mygallery.com有1000个画廊;每个画廊平均加载20张图片;每个图像以2种不同的尺寸(缩略图和全尺寸)存储,平均为_n_kb / image; ...
Keep in mind that if you download / estimating a dynamic websites, you are dealing with what the website produces, not with the real size of the website on the server. A small PHP script can produce tons of HTML.
请记住,如果您下载/估算动态网站,则表示您正在处理网站生成的内容,而不是服务器上网站的实际大小。一个小的PHP脚本可以产生大量的HTML。
#2
6
Have you tried Firebug for Firefox?
你有没有试过Firebug for Firefox?
The "Net" panel in Firebug will tell you the size and fetch time of each fetched file, along with the totals.
Firebug中的“Net”面板将告诉您每个获取文件的大小和获取时间以及总计。
#3
#4
0
You can download the entire site and then you will know for sure!
您可以下载整个网站,然后您就会知道!