user1991890
user1991890

Reputation: 1

Compress images 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: to load, but we are noticing that the frame contents are not loading as quick. We then tried putting the 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.

Upvotes: 0

Views: 115

Answers (2)

Levi
Levi

Reputation: 2113

  1. take a look at and attempt to fix any high and medium priority items from Google pagespeed
  2. get rid of the unnecessary frames (all of them). You tagged this as PHP, so use PHP include() to include content from other files. (As noted by @cryptic, you will have to edit the html from your included files so it will display properly)
  3. use CSS Sprites when you have lots of icons and small images. put your icons in one image, and then use CSS to only show the correct icon: http://css-tricks.com/css-sprites/
  4. compress all your CSS into one css file and all your JS into one minified JS file. How to minify JS or CSS on the fly
  5. use a CDN for jQuery.

Upvotes: 1

Halcyon
Halcyon

Reputation: 57729

Are all the frames served from the same domain?

Keep in mind that browsers restrict the number of requests to the same domain. I think this is currently set to 2. This includes HTML pages, images, scripts, CCS files.

A common workaround is to host some resources on other domains, like cdn1.mydomain.com and cdn2.mydomain.com. This will allow the browser to fetch more resources at once, potentially all of them at once.

If you open the Net tab in Firebug or the Network tab in Chrome you can see which requests are pending.

Upvotes: 0

Related Questions