I implemented a search bar dropdown using bootstrap v3.0.0 and typeahead.js. At the time of completion of my project(2 months ago). I used the following to include the template engine and typeahead.min.js
<link href="http://raw.github.com/jharding/typeahead.js-bootstrap.css/master/typeahead.js-bootstrap.css" rel="stylesheet" media="screen">
<script src="http://twitter.github.com/typeahead.js/releases/latest/typeahead.min.js"></script>
<script src="http://twitter.github.io/typeahead.js/js/hogan-2.0.0.js"></script>
Now all of a sudden I'm welcomed with a "There isn't a GitHub Page here." when I tried to access
http://twitter.github.com/typeahead.js/releases/latest/typeahead.min.js
http://twitter.github.io/typeahead.js/js/hogan-2.0.0.js
My search dropdown isn't working anymore. I tried to replace the hogan template link with a working link https://raw.github.com/twitter/hogan.js/master/web/builds/2.0.0/hogan-2.0.0.js
but there are no alternatives for typeahead.min.js here. Infact there is not typeahead.min.js in any version. Now they have changed it to
http://twitter.github.io/typeahead.js/releases/latest/typeahead.bundle.js
which doesn't work since it is upgraded version. Any idea how I can find which version I'm using. I'm really confused with what is happening and need your help. Thanks.
You should use a CDN for sourcing your Javascript dependencies.
For example if you used cdnjs.com, instead of:
<script src="http://twitter.github.com/typeahead.js/releases/latest/typeahead.min.js">
you would use:
<script src="//cdnjs.cloudflare.com/ajax/libs/typeahead.js/0.9.3/typeahead.min.js"></script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With