SP.SOD how to use correctly?
<p>SP.SOD is a nice feature of SharePoint, but how should I use it? For example, I use these lines of code</p>

<pre><code>ExecuteOrDelayUntilScriptLoaded(function () {
   //code
}, "custom.js");
</code></pre>

<p>If I understand correctly this code will be invoked when custom.js is loaded. There are several functions that can load this script. For example</p>

<pre><code>SP.SOD.executeFunc('custom.js', null, callbackfunction)
</code></pre>

<p>What the best practice to use SP.SOD.executeFunc and ExecuteOrDelayUntilScriptLoaded together?</p>
