title: Restrict bootstrap tooltip to trigger on all pages
body: <p>How can I make sure my tooltip function shouldn't be trigger on all the pages and look for the tooltip on those pages as well where I don't have tooltip and in the end generate an error in console saying:</p>
  
  <p>master.js
  <code>$('[data-toggle="tooltip"]').tooltip();</code></p>
  
  <p>HTML
  <code>&lt;i class="fa fa-info-circle" data-toggle="tooltip" data-placement="bottom" title="Sample Tip"&gt;&lt;/i&gt;</code></p>
  
  <p>Error on pages without tooltip tag</p>
  
  <p>Uncaught TypeError: $(...).tooltip is not a function</p>
  
  <p><em>Currently I have added this code in master js which is referenced on all the pages</em></p>