title: Uncaught TypeError: $(...).modal is not a function with remote url
body: <p>I am trying to open a Bootstrap modal window on <code>click</code> of a button. Modal window is opening a external page (same origin).</p>
  
  <pre><code>Please look into JS Fiddle for more clarification.
  
  https://jsfiddle.net/deveshmishra/frubmp1y/
  </code></pre>
  
  <p>Error: When I click on button I got an error i.e.: </p>
  
  <blockquote>
    <p>Uncaught TypeError: $(...).modal is not a function. </p>
  </blockquote>
  
  <p>Interesting part is that every time I didn't get this error. Sometimes it's working fine, but sometimes, it doesn't work. Another thing is that, it comes only when I load external page. Otherwise it works fine.</p>