Results 1 to 4 of 4

Hybrid View

  1. #1
    Member
    Join Date
    Jun 2011
    Location
    ldn
    Posts
    5

    Post

    Quote Originally Posted by Mone
    no it doesn't.

    I haven't heard of anything similar to your issue before so that I haven't specific suggestions for you. Usually the heavy part is the DOM manipulation; try to remove any update on the screen to see if the browser still have the issue.

    If the issue is still there you may use IE8's developer tools profiler and try to understand where time is spent.

    Also note that the client will switch to a polling session if the slowing-algorithm is enabled and the client is slow handling the updates; see http://www.lightstreamer.com/docs/cl...SlowingEnabled. Is the algorithm enabled on your application? Do you notice the client switching to polling in your onStatusChange callback?

    HTH.
    Thanks for the reply. We've just implemented this kind of pattern for itemUpdate
    Code:
    table.onItemUpdate = function (item, itemUpdate, itemName) {
    	...
    	setTimeout(function () {
    		handleItemUpdate(...)
    	}, 0);
    	...
    };
    And it appears to have made a difference - IE can now run for a much longer time, so far no script warnings - without any noticeable performance hit. There is a huge hit to performance in FF so we're only doing this in IE.

    You're of course correct about the DOM manipulation; it probably is the source of these problems. I forced polling and streaming separately, and saw the same behaviour in each test. The app wasn't switching to polling automatically, and it is allowed to by default.

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    glad you solved.

    anyway please note that UpdateItemInfo instances are reused by the library so do not use them in your setTimeout closure, save the needed values and use that instead.

    Good:


    Bad:


    HTH

 

 

Similar Threads

  1. Replies: 5
    Last Post: December 23rd, 2010, 08:34 AM
  2. Unresponsive Script
    By vaduganathan in forum Client SDKs
    Replies: 1
    Last Post: March 23rd, 2010, 02:38 PM
  3. Action script
    By Cyro in forum Client SDKs
    Replies: 30
    Last Post: July 24th, 2009, 01:50 PM
  4. Multiple connection warning alerts from Firefox
    By Waddy in forum Client SDKs
    Replies: 4
    Last Post: May 14th, 2007, 02:38 PM
  5. Deprecation warning in the LiteralBasedProvider
    By jsharpe in forum Client SDKs
    Replies: 1
    Last Post: April 19th, 2007, 09:24 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 08:33 PM.