title: Twitter typeahead.js remote and search on client
body: <p>As of my understanding typeahead.js got three ways of fetching data.</p>
  
  <ul>
  <li>Local: hardcoded data </li>
  <li>Prefetch: Load a local json file, or by URL</li>
  <li>Remote: Send a query to the backend which responds with matching results</li>
  </ul>
  
  <p>I want to fetch all data from the backend and then 
     process it on the client.
  The data my server responds with got the following structure:</p>
  
  <pre><code>[{id:2, courseCode:IDA530, courseName:Software Testing, university:Lund University},
  {id:1, courseCode:IDA321, courseName:Computer Security, university:Uppsala University}, ...]
  </code></pre>
  
  <p>I want it to search on all fields in each entry. (id, courseCode, courseName, university)</p>
  
  <p>I wanna do more on the client and still fetching one time for each user (instead of every time a user are typing), I probably misunderstood something here but please correct me.</p>