From 45fe181f3aef2a2be43f858ea0b74db84b2296aa Mon Sep 17 00:00:00 2001 From: Kasia Drzyzga Date: Thu, 19 Jun 2014 16:41:00 +0200 Subject: [PATCH] Fixes #5 --- bookmarklet.js | 3 +-- index.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bookmarklet.js b/bookmarklet.js index 8982d2b..6134c01 100644 --- a/bookmarklet.js +++ b/bookmarklet.js @@ -1,4 +1,3 @@ -//javascript:(function()%20{if(!window.__profiler||window.__profiler.scriptLoaded!==true){var%20d=document,h=d.getElementsByTagName(%27head%27)[0],s=d.createElement(%27script%27),l=d.createElement(%27div%27),c=function(){if(l){d.body.removeChild(l);};window.__profiler=window.__profiler||new%20__Profiler();window.__profiler.init();__profiler.scriptLoaded=true;},t=new%20Date();s.type=%27text/javascript%27;l.style.cssText=%27z-index:999;position:fixed;top:10px;left:10px;display:inline;width:auto;font-size:14px;line-height:1.5em;font-family:Helvetica,Calibri,Arial,sans-serif;text-shadow:none;padding:3px%2010px%200;background:#FFFDF2;box-shadow:0%200%200%203px%20rgba(0,0,0,.25),0%200%205px%205px%20rgba(0,0,0,.25);%20border-radius:1px%27;l.innerHTML=%27Just%20a%20moment%27;s.src=%27http://kaaes.github.com/timing/profiler.js?%27+t.getTime();s.onload=c;s.onreadystatechange=function(){if(this.readyState==%27loaded%27){c()}};d.body.appendChild(l);h.appendChild(s);}%20else%20if(window.__profiler%20instanceof%20__Profiler){window.__profiler.init()}})(); (function() { if(!window.__profiler||window.__profiler.scriptLoaded!==true){ var d=document, @@ -16,7 +15,7 @@ s.type='text/javascript'; l.style.cssText='z-index:999;position:fixed;top:10px;left:10px;display:inline;width:auto;font-size:14px;line-height:1.5em;font-family:Helvetica,Calibri,Arial,sans-serif;text-shadow:none;padding:3px 10px 0;background:#FFFDF2;box-shadow:0 0 0 3px rgba(0,0,0,.25),0 0 5px 5px rgba(0,0,0,.25); border-radius:1px'; l.innerHTML='Just a moment'; - s.src='https://raw.github.com/kaaes/timing/gh-pages/profiler.js'; + s.src='//kaaes.github.io/timing/profiler.js'; s.onload=c; s.onreadystatechange=function(){if(this.readyState=='loaded'){c()}}; d.body.appendChild(l); diff --git a/index.html b/index.html index bab200c..bf48637 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@

Breaking Down onLoad

- Loadtime Breakdown + Loadtime Breakdown

drag the button to bookmarks toolbar

click it on any page you want to check