Currently, I am developing a jQuery autocomplete feature that will need to handle between 10 to 20k records.
The dataset is static, and I have the option to either retrieve it from a JSON file or embed it directly into the page using a single line of code like this:
var title = ["example title 1","example title 2"];
From a performance perspective, which method would be more efficient? I am also concerned about potential browser crashes or lag. Additionally, how does XML fit into this decision?
It's worth mentioning that my PHP script already includes a cache system for the HTML content.