せかいや

いまいるここを、おもしろく http://sekai-in-the-box.appspot.com/

【Webサイト】サイトの高速化(計測方法)

 
自分のサイトを早くするよー。

ハイパフォーマンスWebサイト ―高速サイトを実現する14のルール

ハイパフォーマンスWebサイト ―高速サイトを実現する14のルール


この本を読んでるよ。
分かりやすい!

 

計測方法

そもそもどれくらい表示に時間がかかっているのか?
Chrome
F12でデベロッパーツールを起動。

NetWorkタブをあける。
この赤線・青線がロードにかかった時間。
f:id:sekaiya:20131017072656j:plain

 

The timeline indicates when the the DOMContentLoaded and load events were fired with blue and red vertical lines, respectively. The DOMContentLoaded event is fired when the main document had been loaded and parsed. The load event is fired when all of the page's resources have been downloaded.

https://developers.google.com/chrome-developer-tools/docs/network?hl=ja


 

loadの計測

詳細な時間を確かめるにはどうすればいいんだろう?
線にポインタを置いても時間は表示されず。

とりあえず、HAR(HTTP Archive の略)で表示されるJSONデータの中に存在するので、
この数字を減らす事を目標にする!
f:id:sekaiya:20131017072804j:plain

          "onContentLoad": 637,
          "onLoad": 720