Update:
zfnUpdate:I've found a much easier way. You can configure the steam client itself with launch options!
Link here for more information.
On Windows, right-click your Steam shortcut, open Properties, then edit the Target line after \Steam.exe" with the line "-no-browser" (Note, you may need -console too). There are other launch options you can use, such as ones to disable any VR stuff and so forth. Feel free to experiment and see what works for you.
For example, here's mine:
"C:\Program Files (x86)\Steam\Steam.exe" -console -no-browser
This will stop the steamwebhelper service from starting up, and just means that you need to use firefox or chrome when you want to browse the store or trade etc, which a lot of people do this anyway.
Please try this out and see if you notice a difference in TF2 like I did!
This might be common knowledge as it's been a problem for many years, but disabling steamwebhelper has given me a 10-15+ fps boost and eliminated my stuttering problem.
I originally followed this method, and while it still worked, my game would stutter every 4 minutes (or however long I set it to) when it killed the process. More importantly, these 4 or 5 processes would instantly start up again, defeating the purpose.
Only recently I have come across this solution (which gave me the fps boost and reduced my stuttering):
1. Find the file Steam/bin/cef/cef.win7/steamwebhelper.exe and go Right click -> Properties
2. Go to the "Security" tab, then click "Edit..."
3. In the appearing window, select the Group "Users" and make sure you check all of the boxes in the column "Deny" below. Repeat for the Groups "SYSTEM" and "ALL APPLICATION PACKAGES" (Though I'm not sure if that's necessary)
4. Close all the windows with "Ok" and you're done.
This works much better than the script, except for one problem. The steam client is always trying to update itself as it senses something is wrong, not to mention I would be missing out on the monthly steam client updates.
What I am hoping someone can help me with is a script or something that kills steamwebhelper, denies it from starting again, launches TF2, and once I close TF2, allows steamwebhelper to start again so I can use the steam store and profile tabs. Would this be possible to do, rather than me manually doing it each time?