From e7c5de23d7dc318babaee0fda69f4246a186f01a Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Mon, 9 Jul 2012 20:51:04 -0400 Subject: [PATCH] use head.js to script load everything, fixes bug with inclusion of notes server js #57 --- index.html | 110 +++++++++++++++++++++---------------------- lib/head/head.min.js | 8 ++++ 2 files changed, 61 insertions(+), 57 deletions(-) create mode 100644 lib/head/head.min.js diff --git a/index.html b/index.html index 68c5e4f6..4441cce0 100644 --- a/index.html +++ b/index.html @@ -264,68 +264,64 @@ linkify( 'a' ); - - - - - + + diff --git a/lib/head/head.min.js b/lib/head/head.min.js new file mode 100644 index 00000000..6242b0fa --- /dev/null +++ b/lib/head/head.min.js @@ -0,0 +1,8 @@ +/** + Head JS The only script in your + Copyright Tero Piirainen (tipiirai) + License MIT / http://bit.ly/mit-license + Version 0.96 + + http://headjs.com +*/(function(a){function z(){d||(d=!0,s(e,function(a){p(a)}))}function y(c,d){var e=a.createElement("script");e.type="text/"+(c.type||"javascript"),e.src=c.src||c,e.async=!1,e.onreadystatechange=e.onload=function(){var a=e.readyState;!d.done&&(!a||/loaded|complete/.test(a))&&(d.done=!0,d())},(a.body||b).appendChild(e)}function x(a,b){if(a.state==o)return b&&b();if(a.state==n)return k.ready(a.name,b);if(a.state==m)return a.onpreload.push(function(){x(a,b)});a.state=n,y(a.url,function(){a.state=o,b&&b(),s(g[a.name],function(a){p(a)}),u()&&d&&s(g.ALL,function(a){p(a)})})}function w(a,b){a.state===undefined&&(a.state=m,a.onpreload=[],y({src:a.url,type:"cache"},function(){v(a)}))}function v(a){a.state=l,s(a.onpreload,function(a){a.call()})}function u(a){a=a||h;var b;for(var c in a){if(a.hasOwnProperty(c)&&a[c].state!=o)return!1;b=!0}return b}function t(a){return Object.prototype.toString.call(a)=="[object Function]"}function s(a,b){if(!!a){typeof a=="object"&&(a=[].slice.call(a));for(var c=0;c