Google bringt Mess-Tool für Seitenladezeiten

Google legt den Entwurf eines Standards für Web Timing vor - eine Reihe von Messverfahren, mit denen die Ladezeit von Webseiten berechnet werden kann. Er steht Entwicklern in Chrome 6 ab sofort unter window.webkitPerformance zur Verfügung.

Web Timing erlaubt Entwicklern exaktere Berechnungen - inklusive der der benötigten Zeit für das Anfordern, Generieren und Empfangen des HTML-Dokuments. Die vertikale Linie "Legacy navigation started" markiert die erste mit traditionellen Methoden messbare Startzeit. Web Timing zeigt dagegen nicht eine irreführende Ladezeit von beispielsweise 80 ms an, sondern realistische 274 ms, die der Nutzer auf die Seite gewartet hat.

Die Zeitleiste illustriert die Kennzahlen, die Web Timing Entwicklern zur Verfügung stellt (Bild: Google).
Die Zeitleiste illustriert die Kennzahlen, die Web Timing Entwicklern zur Verfügung stellt (Bild: Google).

Wie schnell eine Seite lädt, wirkt sich maßgeblich auf das Nutzerverhalten aus. Frühere Messverfahren setzen erst an dem Moment an, da der Browser ein HTML-Dokument aufgliedert, indem er eine Startzeit in einen "script"-Block am oberen Ende des Dokuments einträgt. Viel Zeit geht jedoch damit verloren, die Seite vom Server zu laden.

Webentwickler umgehen das Problem mit einem Cookie, indem sie die Navigationsstartzeit auf einer vorgelagerten Seite - im Onbeforeunload-Handler - speichern. Diese Taktik funktioniert allerdings nicht, wenn eine Seite zum ersten Mal und daher vermutlich ungecacht geladen wird.

Auch Microsoft und Mozilla arbeiten an genaueren Messmethoden. In der dritten Plattformvorschau von Internet Explorer 9 sind sie unter window.msPerformance zu finden; Mozilla arbeitet daran, window.mozPerformance in Firefox zu integrieren.

Fanden Sie diesen Artikel nützlich?
3 von 3 Lesern fanden diesen Artikel nützlich.

Aktuelle Job-Angebote

ZDNet.de Live

HTC's ...

HTC's Q1 earnings forecast disappoints. t.co/...

7.02.12, 04:35 von zdnetasia
Did ...

Did Google withhold malware protection details from partners? t.co/...

7.02.12, 04:05 von ZDNet
Telst ...

Telstra reveals cause behind compromised BigPond email accounts t.co/...

7.02.12, 03:55 von zdnetaustralia
Googl ...

Google, Facebook remove content from India sites. t.co/...

7.02.12, 03:54 von zdnetasia
Govt ...

Govt caught in internet-security time warp: t.co/...

7.02.12, 03:20 von zdnetaustralia
Faceb ...

Facebook hires former Levi's, Apple exec to head marketing t.co/...

7.02.12, 02:50 von ZDNet
Rio ...

Rio Tinto lists the benefits of introducing automated aids on Australian mining sites t.co/...

7.02.12, 02:38 von zdnetaustralia
Alfre ...

Alfresco enter the cloud & mobile era t.co/...

7.02.12, 02:25 von ZDNet
Faceb ...

Facebook meets with activists on privacy: t.co/...

7.02.12, 01:16 von zdnetaustralia
DDoS ...

DDoS Attacks: Size doesn't matter t.co/...

7.02.12, 01:15 von ZDNet
Nicir ...

Nicira platform brings network virtualization to cloud t.co/...

7.02.12, 00:55 von ZDNet
Breas ...

Breastfeeding women protest outside Facebook offices t.co/...

7.02.12, 00:45 von ZDNet
Solve ...

Solve for X: Google gathers top minds to solve everything t.co/...

7.02.12, 00:25 von ZDNet
An ...

An elderly woman receives a replacement titanium jaw that was fabricated using a 3D printer t.co/...

7.02.12, 00:16 von zdnetaustralia
Wolfr ...

Wolfram Alpha is expanding its knowledge database t.co/...

7.02.12, 00:04 von zdnetaustralia
Is ...

Is the Android crowd tired of HTC? t.co/...

6.02.12, 23:55 von ZDNet
Hard- ...

Hard-drive shortage raises PC costs: t.co/...

6.02.12, 23:52 von zdnetaustralia
Googl ...

Google's answer to EU as succinct as its privacy policy t.co/...

6.02.12, 23:50 von ZDNet
HTC ...

HTC disappoints: 'we dropped the ball' t.co/...

6.02.12, 23:41 von zdnetaustralia
NASA' ...

NASA's ideas on the future of flight: photos t.co/...

6.02.12, 23:17 von zdnetaustralia