Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Compress images/content on load that are within frames

    Hi All,

    We have developed this site: http://www.aloha-connect.com/

    Our issue is that within this page, we have many frames.. in some cases, frame within a frame.

    Our issue is, that on connections with low bandwidth. It can take a long time to load. We have tried using the php gzip code: <?php ob_start("ob_gzhandler"); ?> to load, but we are noticing that the frame contents are not loading as quick. We then tried putting the <?php ob_start("ob_gzhandler"); ?> code within the frame pages as well and didn't make any difference.

    Same happens on this page as well http://aloha-connect.com/rates/

    Any support/suggestions appreciated.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    I would expect this behaviour. Although a benchmark could be used to verify, it will take you longer to compress this on the server end, send it to the client, and decompress on the client. The gain is a reduction in the throughput required, and the trade off loss is time.
    Not sure why you want to use frames since they're a bit on the antiquated side nowadays, but if you are using them and the site is internal frames, if you make use of sessions you need to ensure that they are forced closed with session_write_close as soon as they are done on each page. Otherwise every page is waiting for another one to finish loading to release the lock on the session file.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •