I would like to include js file from different location that it's now. Currently in master page code it looks as below:
<SharePoint:ScriptLink ID="ScriptLink1" language="javascript" name="Company/Scripts/myJsfile.js" Localizable="false" runat="server"/> and it works fine.
But what I'd like to do is to change current location of this javascript file. Target location of this .js file is a shared location (" \v-share\share\javascript ").
Is there any way to include this .js file from shared location in sharepoint master page ? Or is there any possibility to include .js file from location different than /_layouts/.. path (e.g. "C:\Users\Desktop\myJsfile.js")?
I would be very thankful for your help, because this case is very importan for me.
http(s)://. Actually, you could wrap the actual location of the javascript with a custom handler that will server the javascript over http, but it does not seems to be a best practice to me. If you don't want javascript to be stored in SharePoint, create a web application somewhere that will server the JS files. A bit like CDNs do.