It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

JavaScript Optimization

JavaScript Optimization

Postby anasanjaria on Sat Dec 11, 2010 4:57 pm

I have question related to JavaScript Optimization.
Whenever web page is rendered , its all css + script files are also loaded hence effect bandwidth etc.
If I code JavaScript in meaningful manner ( popup.js serve popup .. slideshow.js serve slideshow etc etc) then on each round trip it effects performance .. And if I write whole JavaScript code in single file ( messy code ) it will be difficult for other to understand the flow of code etc ... and if I myself review the code after 3-4 month it will be strange for me too.
So how to optimize such issue ..

Regards,
anasanjaria
anasanjaria
 
Posts: 1
Joined: Sat Dec 11, 2010 4:55 pm

Re: JavaScript Optimization

Postby HotNoob on Tue Dec 14, 2010 4:30 am

just copy and paste it and put it into 1 file.
---

then put in markers, such as /***FileName***/
then use the find to help navigate through your code.

comments are important when developing.
then when your done developing optimize your code.
HotNoob
100+ Club
 
Posts: 169
Joined: Sun May 02, 2010 1:38 am


Who is online

Users browsing this forum: No registered users and 8 guests