This article is a mirror article of machine translation, please click here to jump to the original article.

View: 18735|Reply: 0

[Source] Turn off the Browser Link feature in Visual Studio 2013

[Copy link]
Posted on 10/29/2015 3:55:11 PM | | | |
It's very strange, at first I thought it was caused by the Javascrip{filtering}t file or view file that Visual Studio 2013 added by default when creating a project, but I couldn't find it after looking for a long time, and after looking at the code under FireBug, I found the following code at the bottom of the page:


  1. <scrip{过滤}t id="__browserLink_initializationData" type="application/json">
  2. {"appName":"Firefox","requestId":"23b71f085f334e97969864ab934745c5"}
  3. </scrip{过滤}t>
  4. <scrip{过滤}t async="async" src="http://localhost:49925/4b38e516c0774211882dabde19ecda0f/browserLink" type="text/javascrip{过滤}t">
Copy code
Then I searched for the name browserLink and found that browserLink is a new feature in Visual Studio 2013.

What is Browser Link?

The function of this Browser Link is to build a communication bridge between the flow and the Visual Studio IDE through a script file, and after enabling Browser Link, Visual Studio will inject an IHttpModule module object into the website, and then register a script on each page.

The Browser Link feature is implemented using SignalR technology.

With all that said, what exactly is the Browser Link function used for?

Now the Broswer Link function is relatively simple, it is used to refresh the page that has been opened in the browser in the Visual Studio IDE, why refresh the page in the Visual Studio IDE?

If you are developing a page that needs to be compatible with IE, GOOGLE, FIREFOX and mobile browsers, you may use these flowers to open your page at the same time, if you find some kind of problem, go back to VS IDE to modify it, and after the modification, you can click "Refresh Linked Browsers" in the Visual Studio IDE to refresh all browsers to see the effect.

Now this "Browser Link" only has such a refresh function, but the Browser Link function can be written as an extension function, and you can customize some of the functions you need.

If you don't want to use this feature, just add the following code under the appSettings node in web.config.





<add key="vs:EnableBrowserLink" value="false"/>






Previous:Translate all the field names of the DataTable into Chinese and return
Next:EasyUI datagrid empty data
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com