JS ready
function onDocumentReady(){
/* This code will fire once the document is ready */
}
if(/complete|loaded|interactive/i.test(document.readyState)){
onDocumentReady();
}else{
document.addEventListener('DOMContentLoaded', onDocumentReady);
}