From: Hakim El Hattab Date: Tue, 10 Jul 2012 00:51:04 +0000 (-0400) Subject: use head.js to script load everything, fixes bug with inclusion of notes server js #57 X-Git-Tag: 1.4.0~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e7c5de23d7dc318babaee0fda69f4246a186f01a;p=reveal.js.git use head.js to script load everything, fixes bug with inclusion of notes server js #57 --- diff --git a/index.html b/index.html index 68c5e4f..4441cce 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 0000000..6242b0f --- /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