Hello and welcome to our community! Is this your first visit?
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
    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. #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Saskatoon, Saskatchewan
    Thanked 2,668 Times in 2,637 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'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


Posting Permissions

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