[Solved] Loading message

Yeah an old-school question! This goes back to those days when we used to preload images… Anyway, here’s some code. The magic is the “complete” property on the document.images collection (Image objects). // setup a timer, adjust the 200 to some other milliseconds if desired var _timer = setInterval(“imgloaded()”,200); function imgloaded() { // assume they’re … Read more

[Solved] Hide an element and show another if page is taking too long to load [closed]

It’s not something I’d usually recommend but here’s a pretty hacky solution. const video = document.querySelector(“#video-element-id”); let tooSlow = false; let timeout = setTimeout(() => { tooSlow = true; …logic to change header clearTimeout(timeout); }, 1000); video.addEventListener(‘loadeddata’, () => { console.log(tooSlow ? ‘too slow’ : ‘loaded’); clearTimeout(timeout); }); * EDIT – or you could do … Read more

[Solved] Site’s gone down…cant figure it out :/

Pretty sure something is wrong with your WordPress core files. Try re-installing the WordPress. Here’s how you can do it without losing your existing site data. Keep the wp-content folder and wp-config.php file in a safe place. And delete everything else from your wordpress installation directory. Download WordPress From https://wordpress.org/download/ Extract all files. And Replace … Read more