Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Slow image load - improving performance


w2e

Recommended Posts

Hello,

The image load on my site is slow.

The product search results come up quickly (1 sec) but the button images

and the banner image in header.php are very slow - meaning page load

can take upto 5 secs, even with the same .png images being loaded every time.

 

This is probably largely a hosting/network issue (I don't see this on the local server).......but are there ways of speeding page load up so the images appear quickly ?

 

I have turned off GZIP_COMPRESSION, SHOW_COUNTS and enabled USE_CACHE with /tmp/ directory.

 

Thanks

Martin

Link to comment
Share on other sites

Hello,

The image load on my site is slow.

The product search results come up quickly (1 sec) but the button images

and the banner image in header.php are very slow - meaning page load

can take upto 5 secs, even with the same .png images being loaded every time.

 

This is probably largely a hosting/network issue (I don't see this on the local server).......but are there ways of speeding page load up so the images appear quickly ?

 

I have turned off GZIP_COMPRESSION, SHOW_COUNTS and enabled USE_CACHE with /tmp/ directory.

 

Thanks

Martin

 

Why have you turned gzip off - it should be on to compress the code between your server and visitors browser.

 

There are aother contribs in here with merits \ demerits such as a cache for the osC configurations - which I understand in stock osC are retrieved from the database on EVERY page load. However this contrib caches the config values and thereby boosts load speed.

 

Charles

A kite flies highest AGAINST the wind !

 

"Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"

Link to comment
Share on other sites

Charles - thanks for the reply.

GZip was turned off since I read in another thread it could have negative

performance issues.

Anyway - based on your comments, I turned it back on and tried different

GZIP_LEVELs - but this doesn't seem to have made any difference. :(

 

..any other ideas ?

Link to comment
Share on other sites

Charles - thanks for the reply.

GZip was turned off since I read in another thread it could have negative

performance issues.

Anyway - based on your comments, I turned it back on and tried different

GZIP_LEVELs - but this doesn't seem to have made any difference.  :(

 

..any other ideas ?

 

I was just reading another thread about load speed and the author made this suggestion

 

get your top level .htaccess file and add

 

php_flag zlib.output_compression on

php_value zlib.output_compression_level 5

 

Switch gzip off and watch the pages fly

 

I am not sure in technical terms why this works - but without doing a scientific test - my pages did seem to improve in speed (I made sure I emptied the cache first before timing the loads)

 

One other thing in my test site I made gzip false and the results are good but on my live site I have left gzip on and they are still better than before - i am trying to find out why moding .htaccess would make this improvement - but try it !

 

Charles

A kite flies highest AGAINST the wind !

 

"Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"

Link to comment
Share on other sites

Thanks again Charles.

 

I tried this and it seems to make a slight difference. The images are still a

little slow, but when displayed they appear in one go - rather than 50% then 50%.

 

So that's certainly a good step forward. :D

Thanks

Martin

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...