I have the following javascript in my HTML:
<script>
// This is not needed when the the style is set in _layouts/base.html
// document.body.style.visibility = 'hidden';
function makeBodyVisible() { document.body.style.visibility = 'visible'; } if (window.addEventListener) window.addEventListener("load", makeBodyVisible, false);
else if (window.attachEvent) window.attachEvent("onload", makeBodyVisible);
else window.onload = makeBodyVisible;
</script>
However, when the page is loaded it remains hidden. I've also inspected whether the window.onload or any of the other event listeners are created (using getEventListeners) and none is. This leads me to believe the script is not run. Strangely enough, this happens only on my github.io page while locally it does.
Could someone suggest me what is going on?
Here is the website: https://botev.github.io/
index.htmlin the root directory of your project ?