Closed smontlouis closed 4 years ago
I have a 16mo index to load on mobile. Unfortunately JSON.parse is not asynchronous, nor fast and it blocks the UI + take 3+ secondes to load.
JSON.parse
Is there any other way to load the index ? Or any other lib I could use ?
There are definitely asynchronous versions of JSON.parse, I haven't used any enough to recommend a particular library though. Anything that parses JSON could be used and the result passed to lunr.Index.load.
lunr.Index.load
I have a 16mo index to load on mobile. Unfortunately
JSON.parse
is not asynchronous, nor fast and it blocks the UI + take 3+ secondes to load.Is there any other way to load the index ? Or any other lib I could use ?