diff --git a/index.html b/index.html index 26a2ef96..8182f783 100644 --- a/index.html +++ b/index.html @@ -41,7 +41,7 @@ // move loading div to the end of body const loadingDivElem = document.querySelector('.initial-loader'); const newContainer = document.body; // replace with your new container - newContainer.appendChild(loadingDivElem); + if (loadingDivElem) newContainer.appendChild(loadingDivElem); })