Go Back   CodingForums.com > :: Client side development > JavaScript programming

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 10-23-2003, 09:05 PM   PM User | #1
rawsweets
New Coder

 
Join Date: Aug 2002
Location: Oakland, CA
Posts: 45
Thanks: 1
Thanked 0 Times in 0 Posts
rawsweets is an unknown quantity at this point
code optimizers?

Hello all,

Wondering about code optimization; Are there any online scripts or software that optimize javascript? Some of my files are big, and I want to do more than remove white space and tab characters.

Would it be crazy to make something like this in JS? If so, I'm game if you are!

TIA
rawsweets is offline   Reply With Quote
Old 10-23-2003, 10:14 PM   PM User | #2
scroots
Senior Coder

 
Join Date: Jun 2002
Location: UK
Posts: 1,137
Thanks: 0
Thanked 0 Times in 0 Posts
scroots is an unknown quantity at this point
depends what you mean by crazy.

some can be off good use e.g. they remove all comments (this means you need to keep a commeted copy). So if oyu have large comments it may be of use.

If you have extremely large files it may be beneficial to maybe rethink your method and look at loops and other external javascript files to include in part of your script.

scroots
__________________
Spammers next time you spam me consider the implications:
(1) that you will be persuaded by me(in a legitimate mannor)
(2)It is worthless to you, when i have finished
scroots is offline   Reply With Quote
Old 10-24-2003, 12:40 AM   PM User | #3
liorean
The thread killer


 
Join Date: Feb 2003
Location: Umeå, Sweden
Posts: 5,575
Thanks: 0
Thanked 84 Times in 75 Posts
liorean will become famous soon enoughliorean will become famous soon enough
The question is what you want to optimise for:
- Loading time (reduce size, use mod_gzip)
- Running speed (increase efficiency, limit workload, use temporary storage)
- Memory usage (destructible items, closures, temporary variables)
or.... [drumroll]
- Debuggability (increase verboseness, code points, comments)

I'd say the running speed is pretty often the best thing to optimise for, though loading speed is always something, too.
__________________
liorean <[lio@wg]>
Articles: RegEx evolt wsabstract , Named Arguments
Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards
liorean is offline   Reply With Quote
Old 10-24-2003, 03:34 AM   PM User | #4
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
read this article:
http://www.informit.com/isapi/produc...tent/index.asp
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv 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 12:36 PM.


Advertisement
Log in to turn off these ads.