let div = document.createElement("div");
div.className = "loader";
div.innerHTML = `
`;
document.body.appendChild(div);
document.addEventListener('readystatechange', event => {
if (event.target.readyState === "complete") {
document.querySelector(".loader").style.display = "none";
}
});