In a SP Online in the masterpage, I have a JS file that calls the following in document.ready.
SP.SOD.executeFunc('sp.runtime.js', null, function(){
SP.SOD.executeFunc('sp.js', null, function(){
SP.SOD.executeFunc('sp.publishing.js', null,GetNavigation);
}); });
The code fails right in the first SP.SOD call.
I'm I using wrongly the SP.SOD? is there a step by step example how to use the SP.SOD in JS file associated to a masterpage?
Thank you