Disable Browser Link - which toolbar
Asked Answered
R

5

127

I want to disable visual studios browser link. I found this question: How can I disable __vwd/js/artery in VS.NET 2013? and many other resources saying I should untick "Enable Browser Link" in the toolbar, but that toolbar doesn't show up in my visual studio. I've enabled all the debug toolbars but still no browser link button.

Ranged answered 16/4, 2014 at 6:5 Comment(0)
I
206

http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-preview-2013.aspx

This should explain how to turn off browser link. You could do it via web.config:

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

or do it from the toolbar:

What Browser Link looks like in the Toolbar

If that button isn't available, go to VIEW > Toolbars > Standard and make sure it's checked. Keep in mind it's only available in VS2013 and later.

Inman answered 17/4, 2014 at 18:36 Comment(9)
Pretty annoying that the Browser Link Dashboard (the only relevant thing that Quick Launch can find) doesn't have any way to disable it! I guess it's expected that nobody turns off the Standard toolbar... but I do.Purpose
BrowserLink just flooded Chrome developer tools network section with tons of XHR requests .. ugh, disabled now, worked for VS 2015 !!Sheri
Thanks. This feature, until disabled, for me made vs2015 painfully slow. Was using VMWare Fusion, 4-8 cores on MBP, and Firefox -- not sure if IE would have been faster.Scalawag
I would like to add the "Browser Link" button to a toolbar I actually use, but I can't find it in the commands to add list.Rattlehead
@Rattlehead You're right I can't find it listed in the command list, strange. Maybe someone else knows?Inman
This really helped me a lot, browser link was hanging my chrome browser, even though i have a core i7 system.Jaf
@mik-t To answer your comment on why BrowserLink generates XHR warnings in Chrome, it's because it's using an older version of jQuery, v1.8.2, that uses the Synchronous XHRs, which is already deprecated. Disabling BrowserLink and updating/installing a new jQuery v3.1.1 (latest stable) fixes the issue.Brisk
the XML should be <appSettings>. Captal S.Actual
I had Tools/Options set accordingly and EnableBrowserLink disabled in config but still got this during startup: assembly named 'Microsoft.WebTools.BrowserLink.Tracing' was loaded from '../Microsoft.WebTools.BrowserLink.Tracing.DLL' using the LoadFrom context....Dendriform
O
61

My refresh button was to the right in VS 2015 in case this helps anyone:

shows refresh button for enable browser link in vs 2015

Onder answered 29/1, 2016 at 16:46 Comment(1)
Link no longer valid.Tennison
C
10

Go to web.config and just type

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

Finished! Ez and simple!

Corrigendum answered 22/2, 2016 at 9:43 Comment(0)
A
10

Merely unchecking Enable Browser Link didn't do the trick for me in VS 2017.

I had to also uncheck Enable JavaScript debugging in ASP.NET in Tools > Options > Debugging as suggested here.

Update for 15.7.4: Not related to Browser Link specifically but I had to uncheck Stop debugger when browser window is closed in Tools > Options > Projects and Solutions > Web Projects to prevent new browser windows (not tabs) from being opened when starting a project with debugging.

Aleris answered 9/9, 2017 at 20:10 Comment(0)
P
7

It looks like it can be difficult to identify where Browser Link button is. Show Browser Link button in the toolbar:

enter image description here

Phip answered 23/8, 2017 at 8:22 Comment(1)
Yes, the 'Add or remove Buttons' actually shows the 'Browser link' button, unlike 'Customize toolbars'.Carranza

© 2022 - 2024 — McMap. All rights reserved.