SignalR is slow to connect from javascript client
问题 It sometimes takes a second or more to connect to my SignalR server from the browser - even when running locally. I thought websockets were supposd to be fast! 回答1: There is a configuration option to tell SignalR JS client to wait until the page load event is complete before sending anything. Just set waitForPageLoad: false in the startup options to prevent this happening. Of course you must make sure that anything you do in the callback can be executed safely if the page isn't loaded.