title: Bootstrap v4 .modal("show") slow execution
body: <p>I've noticed that bootstrap's modals take time to show as the page's content becomes more significant.</p>
  
  <p>It takes less than 100ms to show when the page is empty, but takes proportionally more time as the amount of content in the page becomes more significant.</p>
  
  <p>I do not understand this correlation. Can anybody explain this behavior and suggest a workaround to make the modals appearance faster independently of the page's size ?</p>
  
  <p><strong>EDIT</strong>: You can reproduce the behavior by going <em>i.e</em> <a href="http://getbootstrap.com/docs/4.0/components/modal" rel="noreferrer">here</a> and execute the command</p>
  
  <p><code>console.time("modalTime"); $("#exampleModal").modal("show"); console.timeEnd("modalTime");</code></p>
  
  <p>in console, to see how much time it takes. Then add more content to the page by manipulating the DOM and re-execute the command.</p>
  
  <p><strong>My results</strong>: <code>modalTime : 70 ms</code> on the original page. <code>modalTime : 1208 ms</code> after making the content of the page 10x larger.</p>