locked
Signal R - not load other pages RRS feed

  • Question

  • User-629624826 posted

    Good day to everyone.

    I have the following detail:

    Make an application with signalR in vb.net (ASP.NET), which works well, the problem is that the page using SinalR has links that send me to other pages that open with a target = '_blank' in it browser, but when they open they do not load completely, when I inspect my page, the console sends me the following:

    Active resource loading counts reached to a per-frame limit while the tab is in background. Network requests will be delayed until a previous loading finishes, or the tab is foregrounded. See https://www.chromestatus.com/feature/5527160148197376 for more details

    I have researched how to disable that option in chrome, I have applied it, but when opening again pages do not load.

    Any ideas?

    Note: My chrome is version 69.0 and in IE the pages work correctly, and the end of the page show the next message (waiting for available socket)

    Monday, September 24, 2018 6:19 PM

All replies

  • User61956409 posted

    Hi Pollokulos,

    Pollokulos

    My chrome is version 69.0 and in IE the pages work correctly

    I do a test with my signalR JavaScript client in chrome (Version 69.0.3497.92), which work as expected on my side. To troubleshoot the issue, if possible, please share the code/implementation of your signalR client application.

    With Regards,

    Fei Han

    Tuesday, September 25, 2018 5:28 AM
  • User-629624826 posted

    This is mi code:

        <script type="text/javascript">
    
            $(function () {
    
                var job = $.connection.myHub;
    
                job.client.displayStatus = function () {
    
                    getData();
                };
    
                $.connection.hub.start();
                getData();
    
            });
    
            function getData() {
    
                var $tbl2 = $('#form1');
    
                var dt = $('#lbl45').text();
                var dt2 = $('#lbl46').text();
    
                $.ajax({
                    url: 'default.aspx/GetData',
                    contentType: "application/json; charset = utf-8",
                    dataType: "json",
                    type: "POST",
                    success: function (data) {
                        if (data.d.length > 0) 
                        {
                            var newdata = data.d;
    
                        }
    
                    }
    
                });
    
            }
    
        </script>
    Imports System
    Imports System.Collections.Generic
    Imports System.Linq
    Imports System.Web
    Imports Microsoft.AspNet.SignalR
    
    Namespace RealVB
        Public Class MyHub
            Inherits Hub
    
            Public Shared Sub Show()
                Dim context As IHubContext = GlobalHost.ConnectionManager.GetHubContext(Of MyHub)()
                context.Clients.All.displayStatus()
            End Sub
        End Class
    End Namespace
    Imports System
    Imports System.Threading.Tasks
    Imports Microsoft.Owin
    Imports Owin
    
    <Assembly: OwinStartup(GetType(RealVB.Startup))>
    Namespace RealVB
        Public Class Startup
            Public Sub Configuration(ByVal app As IAppBuilder)
                app.MapSignalR()
            End Sub
        End Class
    End Namespace
    Namespace RealVB
        Public Class Products
    
            Public Property NumEmpleado As String
            Public Property WorkOrder As String
            Public Property dueDate As String
            Public Property Color As String
            Public Property PartNumber As String
            Public Property Flag As String
            Public Property Inspector As String
            Public Property startInsp As String
    
        End Class
    End Namespace
    Wednesday, September 26, 2018 3:16 PM
  • User61956409 posted

    Hi Pollokulos,

    Public Shared Sub Show()
                Dim context As IHubContext = GlobalHost.ConnectionManager.GetHubContext(Of MyHub)()
                context.Clients.All.displayStatus()
            End Sub

    I'd like to know when and where you call the hub method Show() from you client application.

    Active resource loading counts reached to a per-frame limit while the tab is in background. Network requests will be delayed until a previous loading finishes, or the tab is foregrounded. See https://www.chromestatus.com/feature/5527160148197376 for more details

    In the link: https://www.chromestatus.com/feature/5527160148197376, we can find:

    Background Tab Resource Load Throttling
    
    In background tabs, the maximum number of active resource loading requests is limited.
    The limit can be different for the top frame, and other sub-frames.
    
    Currently following requests are excluded from the throttling target:
    WebSockets, WebRTC's data channel, Fetch API, XMLHttpRequest, EventSource, Video and Audio.
    
    Most fetches made by HTML elements / stylesheets are throttleable.
    
    This feature is currently enabled on Beta and is going to be shipped in Chrome 69+.

    If possible, you can downgrade your chrome and check if your code can work as expected in an older version chrome.

    With Regards,

    Fei Han

    Thursday, September 27, 2018 9:23 AM