From: Vincent Vanwaelscappel Date: Tue, 22 Feb 2022 18:13:15 +0000 (+0100) Subject: wip #5120 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=47eb36a75e0d24efe626a76006fd22f7d217502a;p=odl.git wip #5120 --- 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; },