document.body.onload = function () {
setTimeout(function () {
let preloader = document.getElementById('page-preloader');
if ( preloader.classList.contains('none') ) {
preloader.classList.add('none')
}
}, 1000)
}
useEffect(() => {
document.body.onload = function () {
setTimeout(function () {
let preloader = document.getElementById('page-preloader');
if ( preloader.classList.contains('none') ) {
preloader.classList.add('none')
}
}, 1000)
}
}, [])