Load 3rd Party JavaScript when user clicks an element
<p>I know I can inject the script when the user clicks an element by creating a script element and injecting it on the page via document.appendChild.  However, the script is listening for onload and onDOMContentReady (or their own home grown domReady event, not sure).</p>

<p>If I inject the script only when the user clicks an element, the callbacks for onload/onDOMContentReady will never fire because those events have already passed.</p>

<p>Any ideas? This 3rd party script pulls in all these other requests and it's not optimal for page loading.</p>
