Make SP.SOD.executeFunc and SP.ClientContext Function Properly In SharePoint Online

Running the code above with a proper function implementation in executeOrDelayUntilScriptLoaded will work 100% of the time.

<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>

SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function () {
console.log("Initiating SP.ClientContext") });
SP.SOD.executeOrDelayUntilScriptLoaded(someFunction,"sp.js");

extradrmtech

Since 20 years I work on Database Architecture and data migration protocols. I am also a consultant in Web content management solutions. I am an experienced web-developer with over 10 years developing PHP/MySQL, C#, VB.Net applications ranging from simple web sites to extensive web-based business applications. When not writing code, I like to dance salsa and swing and have fun with my little family.

You may also like...