Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-18-2013, 11:20 PM   PM User | #1
chostwales
New to the CF scene

 
Join Date: Aug 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
chostwales is an unknown quantity at this point
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.
chostwales is offline   Reply With Quote
Old 01-19-2013, 03:23 AM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,662
Thanks: 4
Thanked 2,452 Times in 2,421 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
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.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:36 AM.


Advertisement
Log in to turn off these ads.