Instead of me hitting the database each time someone types a character into the search box, I want to create static .js files.
What are some techniques I can use to create static .js files that are basically arrays to load the jquery autocomplete plugin with.
My product sku's look like:
ABC1234
or
Alpha Beta C 1234
(abc is the short form for the manufacturer name, while 'Alpha Beta C' is the long form, followed by 3-4 numbers).