PDA

View Full Version : Optimization


chrismarques
14-Nov-2003, 12:41 AM
Hi Everyone,

This one should get everyone going, i am launching my site next week, but as always I have an issue with download speed and page optimization, have a look at the following list

1 25869 bytes SCRIPT http://www.stepz.net/acatalog/norcascade_pop_data.js
1 12564 bytes SCRIPT http://www.stepz.net/acatalog/pop_core.js
1 10417 bytes CSS http://www.stepz.net/acatalog/actinic.css

they represent the files I really need to cut down and optimize
right now My page fully delivered stands at 103KB obviously out of order, I can optimize my html, but what about JS files?

Please come back with any suggestions you might think off, i am sure a lot of people have the same problem...

Kind regards
Chris Marques

PS : Not dissing your CODE Norman but the files are rather large so we might get lucky and someone might have a suggestion:)


Test as you wish www.stepz.net, let me know what you think!

jacy
14-Nov-2003, 06:19 AM
Hi Chris,
I had a look at you site clicked on accessories/ids and clicked on the first 2 items more button. You might want to align them a bit better as the pop up info is off to the left and can't be read properly.

Cheers,

Jacy

chrismarques
14-Nov-2003, 08:09 AM
Apologies,

I had forgotten the style sheet.

All is as it should now...

Thanks Jacy

NormanRouxel
14-Nov-2003, 11:03 AM
If you're using NorCascade then you'll also be loading the 2 Actinic section_tree files as well. These are created by Actinic and can get quite big if you have a lot of sections and a long pathname to your pages.

Once the menu has loaded once all these files should be in the browser cache and should load in a flash for subsequent page views.

Anyway the good news is that you can cut norcascade_pop_data.js down to about 9K if you strip all the comments, commented out routines and unused code. It will help if you understand a bit of JavaScript to do this.

Also I've just posted a new version of NorCascade that comes with a full GUI helper program. Again you can strip down the size of the generated JavaScript by removing unnecessary stuff from norcascade_pop_tail.js.

Norman

asprott
14-Nov-2003, 12:34 PM
The guy who developed the original version of the menu system, also has a good tool that trims the menu code for you. You can find it here (http://www.twinhelix.com/dhtml/scripts/codetrim.html)

This may be of some help, if not a good utility to have anyway.

Andrew