Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
01-18-2013, 11:20 PM #1
- Join Date
- Aug 2010
- Thanked 0 Times in 0 Posts
Compress images/content on load that are within frames
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.
01-19-2013, 03:23 AM #2
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,650 Times in 2,619 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');