Add: Resource timing

This commit is contained in:
surunzi
2016-05-23 13:17:12 +08:00
parent 59c4dbf6dc
commit b029cf9972
8 changed files with 156 additions and 105 deletions

View File

@@ -79,8 +79,13 @@ export default class Sources extends Tool
return this._render();
}
if (this._isGettingHtml) return;
this._isGettingHtml = true;
util.get(location.href, (err, data) =>
{
this._isGettingHtml = false;
if (err) return;
this._html = data;