A good lazy loader for JS
diff --git a/assets/js/application.js b/assets/js/application.js
index 42e1db4..f8cb027 100644
--- a/assets/js/application.js
+++ b/assets/js/application.js
@@ -1,10 +1,18 @@
 BlogHelper = (function () {
 	return {
-		lazyLoadJS: function (script) {
+		lazyLoadJS: function (script, callback) {
 			var s = document.createElement("script"),
-				h = document.getElementsByTagName("head");
+				h = document.getElementsByTagName("head"),
+				i = script.replace(/\./g, "-");
 			s.src = "/assets/js/" + script; // yes we don't want any arbitrary script
 			s.type = "text/javascript";
+			s.id = i;
+			s.onload = s.onreadystatechange = function () {
+				if (document.getElementById(i) !== null) {
+					s.onload = s.onreadystatechange = null;
+					callback(i);
+				}
+			};
 			if (h && h[0]) {
 				h[0].appendChild(s);
 			}
@@ -13,5 +21,9 @@ BlogHelper = (function () {
 }());

 domready(function () {
-	BlogHelper.lazyLoadJS("shifty.min.js");
-});
\ No newline at end of file
+	BlogHelper.lazyLoadJS("shifty.min.js", function (scriptId) {
+		if (console && console.log) {
+			console.log(scriptId, "is loaded");
+		}
+	});
+});
Removed shifty