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 30 years I work on Database Architecture and data migration protocols. I am also a consultant in Web content management solutions and medias protecting solutions. I am 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. Besides my work, I like to work freelance only on some wordpress projects because it is relaxing and delightful CMS for me. When not working, I like to dance salsa and swing and to have fun with my little family.

You may also like...