Friday 14 March 2014

How to add script reference in SharePoint JS Links

How to add script reference in SharePoint JS Links
Open js file.
You will find : (function () {
Inside above tag add :
(window.jQuery || document.write('<script src="//ajax.aspnetcdn.com/ajax/jquery/jquery-1.10.0.min.js"><\/script>'));
Final Code.
(function () {
(window.jQuery || document.write('<script src="//ajax.aspnetcdn.com/ajax/jquery/jquery-1.10.0.min.js"><\/script>'));