Friday, August 8, 2014

SharePoint 2013 JavaScript runtime error: 'NotifyScriptLoadedAndExecuteWaitingJobs' is undefined

JavaScript runtime error: 'NotifyScriptLoadedAndExecuteWaitingJobs' is undefined

I recently ran into the following error when working with a SharePoint 2013 Client Web Part (App Part) while accessing the term store using
JavaScript runtime error: 'NotifyScriptLoadedAndExecuteWaitingJobs' is undefined.

<script type="text/javascript" src="../Scripts/jquery-1.8.2.min.js"></script>
 <script type="text/javascript" src="/_layouts/15/MicrosoftAjax.js"></script>
 <script type="text/javascript" src="/_layouts/15/init.js"></script>
 <script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script>
 <script type="text/javascript" src="/_layouts/15/sp.js"></script>
  <script type="text/javascript" src="/_layouts/15/SP.UserProfiles.js"></script>

Solution:

Need to add init.js

No comments:

Post a Comment