From 47eb36a75e0d24efe626a76006fd22f7d217502a Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 22 Feb 2022 19:13:15 +0100 Subject: [PATCH] wip #5120 --- resources/js/search.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/resources/js/search.js b/resources/js/search.js index 020c6cc..e143a8c 100644 --- a/resources/js/search.js +++ b/resources/js/search.js @@ -21,12 +21,9 @@ export default () => ({ // We need the URL from the HTML because it gets properly updated when exporting the final version const data = await fetch(this.$el.dataset.searchindex); const index = await data.text(); - console.log(index); // Delay miniSearch initialisation so there's less chance of animations stuttering during page loads - setTimeout(() => { - window.minisearch = this.miniSearch = MiniSearch.loadJSON(index, this.setup); - }, 4000); + window.minisearch = this.miniSearch = MiniSearch.loadJSON(index, this.setup); this.medialibrary = this.$el.dataset.medialibrary; }, -- 2.39.5