I've been working on my personal portfolio/website and encountered a bug that I can't seem to fix on my own. The issue is with the logo (aa) and text under it showing even after the content page has fully loaded, taking around 3 seconds to hide.
I tried removing the transition of 3 seconds, but the bug persists. Can anyone pinpoint the problem and suggest a solution?
As for sharing the code for you to check easily, I'm not sure of the best approach. The URL where the bug and code are located has been removed.
I attempted to create a mockup using the snippet tool, but without images and all the text, the bug isn't visible as the mockup loads in less than 1 second. So, sharing the website URL (not ideal) along with the JavaScript code I'm using to hide the loading screen seems to be the only option to showcase the issue.
Thanks
document.onreadystatechange = function() {
var state = document.readyState
if (state == 'complete') {
setTimeout(function() {
document.getElementById('interactive');
document.getElementById('load').style.visibility = "hidden";
document.getElementById('content').className = '';
});
}
}
If you have any other suggestions on how to share this issue effectively, please let me know.