Found this really helpful article about bundling and minification
using visual studio extension:
https://msdn.microsoft.com/en-in/library/dn850363.aspx
function sayHello() {
alert("Hello");
}
//Notify SharePoint that the custom file has
loaded.
SP.SOD.notifyScriptLoadedAndExecuteWaitingJobs("ShareTechPoint.js
");
|
<script type="text/ecmascript">
function runCode() {
SP.SOD.RegisterSod(‘ShareTechPoint.js ',
'/StyleLibrary/ShareTechPoint.js');
var x = ExecuteOrDelayUntilScriptLoaded(sayHello,
"ShareTechPoint.js ");
}
</script>
<input id="Button1" type="button" value="Run Code"
onclick="runCode()" />
|
<WebPartPages:AllowFraming runat="server" />
I faced a weird issue today, Metadata for document which has lookup column was not updating even after saving the item. There was no erro...