I'm making a dictionary browser extension that for various reasons can't use an online API. Instead, I have two huge .json files, one for English to the target language and the other for vice versa, the larger of which is about 26MB. I'm aware that I can use fetch()
to import a json file as an object, but I'm afraid that something that large will heavily impact performance.
Is there a way to retreive just one key from a huge .json file in js? Would it be best if I hosted the .json online somehow? Or is 26MB actually not such a big deal, and I should just import the whole thing as an object?
Via Active questions tagged javascript - Stack Overflow https://ift.tt/azCTM7e
Comments
Post a Comment