1
I use Signalr library, to send or receive notifications.
Follows code:
$(function () {
// Start hub
$.connection.hub.start().done(); // <----Aqui faz ele aparecer no console
});
Log console:
Xmlhttprequest on the main thread is deprecated because of its detrimental effects to the end user’s Experience. For more help, check https://xhr.spec.whatwg.org/.
When I comment on the line:
//$.connection.hub.start().done();
The console warning disappears.
What is the cause of this warning and how to correct ?
OBS: jQuery version 3.1.1 and Signalr version 2.2.2, most updated version by nuget.
Can you create a jsFiddle that replicates that problem? I suggest you put it on Github as Issue. I don’t see what the problem could be if this library uses jQuery 3.
– Sergio
@Sergio, I really want to do this in jsFiddle, has part of the server side C# need to make it work signalR. How can I do ?
– Matheus Miranda
Can’t use jsFiddle echo? that simulates the server
– Sergio