How can I check execute some javascript after my DOM is loaded and after another js has finished loading?
<p>I am using the javascript <a href="https://github.com/jamesallardice/Placeholders.js" rel="nofollow">Placeholders.js</a>   Once my page is loaded it says that should execute the script as below:</p>

<p>Placeholders.init({
    live: true, //Apply to future and modified elements too
    hideOnFocus: true //Hide the placeholder when the element receives focus
});</p>

<p>I am NOT using jQuery. How can I know when to execute the init because it depends on two things: The Placeholders.js script having loaded and my form fields having loaded.</p>
