Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Dec 2008
    Location
    Zelienople
    Posts
    2

    Javascript library file size

    Hi, I am looking at using Lightstreamer as it seems to be a well supported and mature product. My one concern is the size of the javascript library which is upwards of 250k (lspushpage.js, lscommons.js & lsengine.js). It appears that the brunt of the file size is for the VisualTable stuff. I am only interested in developing nonVisualTable apps using longpolling/streaming, is there a 'lite' version for the javascript libraries?

    Thanks,
    Jason

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    517
    Hi Jason,

    Please consider that the JavaScript libraries are usually delivered by any common Web server employing HTTP content compression (through GZIP/DEFLATE encoding). In this case the overall size of the libraries is about 65 KB.

    That said, a non-visual lite version of the libraries is not available yet, but will be definitely provided in the future.

    Cheers,
    Alessandro

  3. #3
    Member
    Join Date
    Aug 2008
    Location
    HCM City
    Posts
    7

    Lightstreamer content compression

    Quote Originally Posted by Alessandro
    Please consider that the JavaScript libraries are usually delivered by any common Web server employing HTTP content compression (through GZIP/DEFLATE encoding). In this case the overall size of the libraries is about 65 KB.

    Alessandro
    I would like to know if Lightstreamer supports content compression similarly like GZIP/DEFLATE encoding in other Web servers? It would be great for pushing large number of items.
    Thank you.

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    517
    GZIP/DEFLATE push content compression is not supported for some reasons:

    When in streaming mode, it does not seem to be safe enough to compress individual chunks while maintaining broad compatibility with clients and intermediaries.
    In any case, Lightstreamer pushed content is already compressed because only the deltas in the item state is pushed. So, applying a further GZIP/DEFLATE-style compression is many cases could not provide any benefit (unless large strings are pushed, but this is not a common use case).

    When in polling mode, most of the response length in many cases is given by the HTTP header, which would not change with GZIP/DEFLATE compression.

    But we keep improving our protocol, so I don't exclude we could decide to provide some form of compression support in the future.

 

 

Similar Threads

  1. Default buffer size
    By felipe.valemobi in forum Client APIs
    Replies: 1
    Last Post: October 19th, 2011, 12:33 PM
  2. How can I limit the log file size ?
    By GoatHunter in forum General
    Replies: 2
    Last Post: August 25th, 2009, 11:54 AM
  3. customizing Javascript Library
    By rd2008 in forum Client APIs
    Replies: 2
    Last Post: April 28th, 2009, 11:03 AM
  4. Replies: 1
    Last Post: August 27th, 2007, 12:24 PM
  5. Dynamically size a table
    By Mone in forum Client APIs
    Replies: 2
    Last Post: May 7th, 2007, 03:59 PM

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 11:51 AM.