View previous topic :: View next topic |
Author |
Message |
raven
Joined: 31 Jan 2006 Posts: 41
|
Posted: Tue Jan 31, 2006 5:50 pm Post subject: Javascript Optimization Tips |
|
|
I am just a hack when it comes to Javascript, but one of the problems I have run into when trying to expirement is my code always seems very bloated. I am afraid these scripts are slowing down the remote side too much with their size.
What are some basic optimization tips for java? _________________ Programmers do it in code |
|
Back to top |
|
|
jon
Joined: 01 Oct 2004 Posts: 40
|
Posted: Wed Feb 01, 2006 9:41 am Post subject: |
|
|
I don't think client-side JavaScript will be an issue performance wise, as long as you keep your JavaScript code in a separate JS file. This way you can include it on every page in your website, and once a user downloads a page from your domain, the JS file will be cached on his/her computer. |
|
Back to top |
|
|
Missie
Joined: 06 Feb 2006 Posts: 25
|
Posted: Mon Feb 06, 2006 7:43 pm Post subject: |
|
|
jon wrote: | I don't think client-side JavaScript will be an issue performance wise, as long as you keep your JavaScript code in a separate JS file. This way you can include it on every page in your website, and once a user downloads a page from your domain, the JS file will be cached on his/her computer. |
Yeah I also agee. I also have been doing this same thing. |
|
Back to top |
|
|
raven
Joined: 31 Jan 2006 Posts: 41
|
Posted: Wed Feb 22, 2006 1:22 pm Post subject: |
|
|
jon wrote: | I don't think client-side JavaScript will be an issue performance wise, as long as you keep your JavaScript code in a separate JS file. This way you can include it on every page in your website, and once a user downloads a page from your domain, the JS file will be cached on his/her computer. |
Thanks Jon. So even if the code is a bit unoptimized it will not be a problem because they only download it one time? That makes sense. _________________ Programmers do it in code |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|