Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

dhtml menu and speed.. please help


shmerek

Recommended Posts

Posted

Hi, I have a site that uses the Dynamic DHTML Menu contribution, I thought that everything was going well until I added a few items to my database and now it takes forever to load the freaking page.

 

I would completely drop the dhtml menu but I cannot find another method of navigating the massive amounts of categories I am going to have, the navigation on the side that comes with oscommerce would never work, way to much clicking. When all is said and done I am going to have a couple thousand products many of which have exactly the same name (opera titles).

 

Anyways if you are still reading this post is there anything at all I can do to make this thing faster or can anybody suggest an alternative form of navigation that would be comparable to the dynamic menu? I am desperate for some input please!!

 

Here is the link to the unfinished store, there are only a few products and it is a snail to load :( http://store.pelleas.ca

 

(I already have a mail order business that I would like to migrate to the web)

 

Any suggestions would be greatly appreciated.

Posted

Hi

 

I took a look and your DHTML menus don't seem any slower to me than your other links - from Europe on cable. Took a couple a seconds before the pages appeared.

Posted

Loading time results for: http://store.pelleas.ca/default.php

 

Loading test content results

Number of graphics/scripts: 40

Total graphics size: 127184 bytes

Total HTML size: 23979 bytes

Total page size: 151163 bytes

Load time by modem speed

Modem speed: Download time:

14.4k 91.39 seconds

28.8k 49.38 seconds

56k 28.78 seconds

ISDN (128k) 16.83 seconds

T1 (1.44 MB) 8.25 seconds

 

Warning!: Your loading time is too slow... You are risking search engine time out and loosing 40% of potential viewers!

 

The_Bear

Posted
Hi

 

I took a look and your DHTML menus don't seem any slower to me than your other links - from Europe on cable. Took a couple a seconds before the pages appeared.

 

Oops I guess I wasn't clear, I meant it takes a while to load the javascript that runs the menu, Bear's post shows my point. The question is how do I fix it?

 

Anyone?

Posted
Hi

 

I took a look and your DHTML menus don't seem any slower to me than your other links - from Europe on cable. Took a couple a seconds before the pages appeared.

 

Oops I guess I wasn't clear, I meant it takes a while to load the javascript that runs the menu, Bear's post shows my point. The question is how do I fix it?

 

Anyone?

I don't think Bear's measurements include the JS?? You mean the driver files (like menu.js - only 4.95Kb for example) or the code in the HTML? This is 23979, which ain't bad.

 

You could reduce the images 'New Products for June' for 9 to 3 in admin.

Posted

I reduced the New Product images to only three.

 

I think it is the menu.tpl.js which takes forever to load, I am a newbie to this sort of stuff but I think it is the file that queries the database to get all the category names etc.

 

Is there anyway I could hard code this stuff in once I have all the categories laid out or would that take just as long?

Posted
I reduced the New Product images to only three.

 

I think it is the menu.tpl.js which takes forever to load, I am a newbie to this sort of stuff but I think it is the file that queries the database to get all the category names etc.

 

Is there anyway I could hard code this stuff in once I have all the categories laid out or would that take just as long?

 

menu.tpl.js is even smaller at 1.64Kb and menu_items.js.php is a simple text file (the 'database' that the menu uses).

 

Looking at you site again, it does seem to hang from time to time when changing pages. It's not file size that's doing though.

 

Have you tried running without the menu system? It's in header.php you could just rename it headerMENU.php and use the origin that came in the zip file and see if that makes a difference...

Posted

I commented out the dhtml menu and now it loads super quick. So I guess I know for sure what slows the site down. Is there anyway to make the menu system quicker or should I look for a different form of navigation? Any ideas?

 

By the way thanks for the help. :)

Posted

Okay I am trying a different menu that has all the categories written into it instead of going through mysql but is still freaking sucks, slow as stink. What is a guy to do? I can't really do much about the number of categories I have, the old people that will be surfing the site need it simple

 

This sucks :evil:. Any suggestions for an alternative form of navigation? Pull down Menus <frustration> AGHGHA HGA!!!!!!! CRAP!</frustration>

Posted

Fooo-eeeeh!

 

First off a JS menu is not universally readable. Some browsers have JS off some to old to see it. So according to the 'book' you should have an alternative...

 

The standard OSC menu system is fairly comprehensive. If it's going to be very long, why not move all other info boxes to the column_right.php and have column_left.php for categories only?

 

Must say I am still not 100% convinced that the menus are that slow...

Posted

I will comment it out again and you will see the difference, I am on a dsl line and with the menu it seems to take at less 10-15 seconds to load. guess I could use the standard menu but my list is going to be fricking huge, I wouldn't want to wade through it.

 

If Bear is still around what are you using to come up with the loading stats?

Posted

Another problem I have with the side navigation is that I have products with names like:

IL PIANTO E IL RISO DELLE QUATTRO STAGIONI DELL'ANNO

ELISABETTA AL CASTELLO DI KENILWORTH

and

IL FURIOSO ALL'ISOLA DI SAN DOMINGO

 

these won't look so good in the Categories box

Posted

there is nothing wrong with a dhtml menu using javascript, i run one on my site, however, mine was not designed for osc, so i have to put my own links into it, which is fine because atleast i can control what i am doing. mine loads quite quickly, see www.righthereit.com/default.php the thing that would slow it down would be if it had to process information through the database, would cause extreme headaches.

ok

Don't die with the music in you!!!

 

Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

Posted

Oops never mind it popped up now. May I ask where you got that menu? I started to do a menu that didn't use the database and it still seems really slow, the fie size was at about 24k when I gave up because it was getting slow, I will put that menu back on my site and maybe you can let me know

 

Thanks for the reply

Posted

i just did a search in good for dhtml then went to some dhtml site cant remember what it was, and looked for a menu that i liked and just put code in the relevant spots to make it appear where it is

Don't die with the music in you!!!

 

Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

  • 2 years later...
Posted

check your SQL queries to see how many there are... ARe you using STS? This is well known to cause massive amounts of sql queries, especially with a large menu.

 

the DHTMKL menu isnt in itself a slow system, in fact its ultra fast.. but it wont appear until everything else in your page is loaded.

 

so, when you turned it off, you saw your menu instantly, but the rest of the page was probably still loading.

Archived

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

×
×
  • Create New...