Set up bundling and move blog JS to JS file.

This commit is contained in:
Robert Marshall 2020-04-04 12:50:20 +01:00
parent 1b13e22bce
commit a375a4356a
6 changed files with 15 additions and 11 deletions

View file

@ -57,4 +57,11 @@ Number.prototype.toString=function(input, shouldRound){
return this.oldToString(input);
return round(this, input);
};
};
function documentReady(callback) {
if (document.readyState === "complete" || document.readyState === "interactive")
setTimeout(callback, 1);
else
document.addEventListener("DOMContentLoaded", callback);
}