Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
guidons-master committed Mar 26, 2024
1 parent 4b688c1 commit 2f5f908
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions themes/Lab/source/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ function loadScript(src, defer, async, autoReplaceSvg, root = "/hexo-theme-lab")
};
})();

loadScript("/js/fontawesome.js", false, true, "nest");
loadScript("/js/header.js", true, false);
loadScript("/js/footer.js", true, false);
loadScript("/js/pagination.js", true, false);
loadScript("/js/team.js", true, false);
loadScript("/js/search.js", true, false);
document.addEventListener('DOMContentLoaded', function() {
loadScript("/js/fontawesome.js", false, true, "nest");
loadScript("/js/header.js", true, false);
loadScript("/js/footer.js", true, false);
loadScript("/js/pagination.js", true, false);
loadScript("/js/team.js", true, false);
loadScript("/js/search.js", true, false);
});

console.log("main.js loaded")

0 comments on commit 2f5f908

Please sign in to comment.