Tools to measure website size

拟墨画扇 提交于 2019-12-06 04:10:42

问题


Can someone please recommend some tools that would help me measure the size of our website pages? I need to gather the size of the page rendered. We have over 100 pages and so obviously I am looking for a tool that could diagnose an entire domain or folder. I don't want to spend days measuring the pages one at a time.

Thank you so much in advance.

ac


回答1:


Page Speed Insights command-line tool gives you various metrics including CSS size, HTML size and Image size.

Install it with:

sudo npm install -g psi

And use it like so:

$ psi https://robinwinslow.uk

--------------------------------------------------------

URL:       robinwinslow.uk
Strategy:  mobile
Speed:     84
Usability: 99

CSS size                                   | 118.93 kB
HTML size                                  | 61.03 kB
Image size                                 | 5.36 kB
JavaScript size                            | 45.1 kB
CSS resources                              | 1
Hosts                                      | 4
JS resources                               | 2
Resources                                  | 6
Static resources                           | 4
Total size of request bytes sent           | 945 B

Leverage browser caching                   | 1.49
Minify CSS                                 | 0.08
Minify HTML                                | 0.06
Minimize render blocking resources         | 16
Size tap targets appropriately             | 0.11

--------------------------------------------------------


来源:https://stackoverflow.com/questions/2859427/tools-to-measure-website-size

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!