<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Loading Archives : Binary Bits</title>
	<atom:link href="https://blog.binarybits.net/tag/loading/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.binarybits.net/tag/loading/</link>
	<description>Bits &#38; Pieces - A blog by Kannan Balasubramanian</description>
	<lastBuildDate>Tue, 18 Jul 2017 05:56:15 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Load scripts in SharePoint within custom Javascript or Workflow</title>
		<link>https://blog.binarybits.net/load-scripts-sharepoint-within-custom-javascript-workflow/</link>
					<comments>https://blog.binarybits.net/load-scripts-sharepoint-within-custom-javascript-workflow/#respond</comments>
		
		<dc:creator><![CDATA[Kannan]]></dc:creator>
		<pubDate>Thu, 11 May 2017 05:08:03 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Loading]]></category>
		<guid isPermaLink="false">https://blog.binarybits.net/?p=844</guid>

					<description><![CDATA[<p>Following is the code which can be used to load JavaScript in sequence. This code for example loads the reputation.js from SharePoint&#8217;s layouts folder &#38; jQuery from site assets. (function () { ExecuteOrDelayUntilScriptLoaded(function () { //sp.runtime.js has been loaded ExecuteOrDelayUntilScriptLoaded(function () { //sp.js has been loaded SP.SOD.registerSod('reputation.js', SP.Utilities.Utility.getLayoutsPageUrl('reputation.js')); SP.SOD.registerSod('jquery-3.2.1', '../SiteAssets/Scripts/jquery-3.2.1.min.js'); SP.SOD.loadMultiple(['reputation.js', 'jquery-3.2.1'], function () { [&#8230;]</p>
<p>The post <a href="https://blog.binarybits.net/load-scripts-sharepoint-within-custom-javascript-workflow/">Load scripts in SharePoint within custom Javascript or Workflow</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Following is the code which can be used to load JavaScript in sequence.</p>
<p>This code for example loads the reputation.js from SharePoint&#8217;s layouts folder &amp; jQuery from site assets.</p>
<pre class="lang:js decode:true ">(function () {
    ExecuteOrDelayUntilScriptLoaded(function () {
        //sp.runtime.js has been loaded
        ExecuteOrDelayUntilScriptLoaded(function () {
            //sp.js has been loaded
            SP.SOD.registerSod('reputation.js', SP.Utilities.Utility.getLayoutsPageUrl('reputation.js'));
            SP.SOD.registerSod('jquery-3.2.1', '../SiteAssets/Scripts/jquery-3.2.1.min.js');
            SP.SOD.loadMultiple(['reputation.js', 'jquery-3.2.1'], function () {
                //reputation.js &amp; jquery-3.2.1.min.js have been loaded.
                var context = SP.ClientContext.get_current();
                var web = context.get_web();
                //Check if jQuery has been loaded
                if (typeof jQuery != 'undefined') {
                    console.log("Jquery is loaded");
                }
                else {
                    console.log("Jquery is not loaded!");
                }
            });
        }, "sp.js");
    }, "sp.runtime.js");
})();</pre>
<p>Source: <a href="https://sharepoint.stackexchange.com/questions/92082/uncaught-typeerror-cannot-read-property-get-current-of-undefined" target="_blank" rel="noopener noreferrer">https://sharepoint.stackexchange.com/questions/92082/uncaught-typeerror-cannot-read-property-get-current-of-undefined</a></p>
<p>The post <a href="https://blog.binarybits.net/load-scripts-sharepoint-within-custom-javascript-workflow/">Load scripts in SharePoint within custom Javascript or Workflow</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.binarybits.net/load-scripts-sharepoint-within-custom-javascript-workflow/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: blog.binarybits.net @ 2026-04-23 06:40:11 by W3 Total Cache
-->