reed/turbolinks-compatibility

instantclick.js stops other jquery functions

gags88 opened this issue · 0 comments

I am using instantclick.js in my website but at the time when i include on the page near as below:

<script src="instantclick.min.js" data-no-instant></script> <script data-no-instant>InstantClick.init();</script>

then other jquery plugins do not work. For e.g, if i have autocomplete API by Google then it does not work and when i refresh the page then it starts working.

Can you please let me know why it is happening because when i remove instantclickthen all works fine?

Error in console is:

  1. Uncaught TypeError: Object [object Object] has no method 'geocomplete' (For autocomplete)
  2. You have included the Google Maps API multiple times on this page. This may cause unexpected errors. (For displaying address on google map)