Typeahead.js The Book!

I wrote a book about typeahead.js, here's an overview of it

typeaheadI have written a book on Typeahead.js, which you can buy the book from Amazon!

Buy from the UK

For those who don't know Typeahead.js is something created by the fine folks at Twitter that gives typeahead functionality to text input fields. It is really useful functionality and Tim Trueman, Veljko Skarich, Jake Harding, and co should be proud of their efforts.

For anyone interested the book will cover such things as;

  • Installing Bower for Typeahead.js
  • Basic Searching using Typeahead.js
  • Preloading JSON
  • Fetch data from the server
  • Prefetching data with a server fallback
  • Manipulating data
  • Creating custom events
  • Collecting the dataset
  • Displaying your data to the user
  • Caching your results
  • Using LocalStorage
  • Minimizing lookups
  • Testing the Typeahead.js codebase
  • Testing your code that uses Typeahead.js
  • Integrating Typeahead.js into Bootstrap
  • Integrating Typeahead.js into WordPress
  • Integrating Typeahead.js with Ruby on Rails

Recent posts View all

Ruby

How to ignore Bullet in RSpec tests

Using Bullet during a test can pick up mistakes but also has false negatives; here is an easy way to ignore them

Ruby

How we used Nokogiri to fix a sizing issue in YouTube's oEmbed

At some point, one of our calls to YouTube's oEmbed endpoint was returning videos way too small; we fixed in in our Rails application by using Nokogiri