nukeSEO.com - PHPNuke SEO Search engine optimization, professional tools including nukeSEO, nukeSPAM, nukeFEED, nukePIE, nukeWYSIWYG and more

 

. Welcome to nukeSEO.com  ! 
.
.
.


.
nukeSEO.com: Forums


 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Optimizing java and css
 
 
Post new topic   Reply to topic    nukeSEO.com Forum Index -> General / Other Stuff
View previous topic :: View next topic  
Author Message
nextgen
webmaster


Joined: Nov 17, 2008
Posts: 29
Location: Maryland

PostPosted: Sun Apr 26, 2009 5:01 am    Post subject: Optimizing java and css Reply with quote

Has anyone tried to optimize their java or css like shown on the sites main page news article ? I am very tempted to do so.
_________________
Image
  
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Guardian
webmaster


Joined: Dec 25, 2005
Posts: 364
Location: Vsetin, Czech Republic

PostPosted: Sun Apr 26, 2009 8:29 pm    Post subject: Reply with quote

I haven't read the article but if you are referring to compressing them, yes I have and it makes a difference.
_________________
Only registered users can see links on this board! Get registered or login!
  
Back to top
View user's profile Send private message
nextgen






PostPosted: Mon Apr 27, 2009 4:32 pm    Post subject: Reply with quote

I will give it a go then. The site is the first of my attempts to keep the site close to W3c compliant and running half way decent. Its funny how priorities change as we use nuke. When i first started using nuke i loaded it with every mod i could find and use the most intense graphics themes. Now speed, ranks, and good content mean the most. Thanks for your help with it all my friends.
  
Back to top
kguske
Site Admin
Site Admin


Joined: May 12, 2005
Posts: 876

PostPosted: Tue Apr 28, 2009 5:46 am    Post subject: Reply with quote

Not all of our JS and CSS are optimized, but it's definitely something we continue to review. Ultimately, it would be great to be able to dynamically built optimized files and only load 1 JS and 1 CSS file per page - but that might not ever be possible if we use external JS like quantcast, Google Analytics, addthis, etc.
_________________
  
Back to top
View user's profile Send private message Visit poster's website
nextgen






PostPosted: Tue Apr 28, 2009 3:52 pm    Post subject: Reply with quote

Any step forward is important. The PHP-Nuke code had been left untouched and un updated for so long and the fact that sites like yours and ravens are truely trying to improve upon it is the only reason i believe that anyone still uses nuke. I have noticed a mass movement away from nuke the last couple of years but i see the tide returning back thanks to everyones efforts. It is appreciated my friend and i hope you know that it is.
  
Back to top
nextgen






PostPosted: Tue Apr 28, 2009 3:54 pm    Post subject: Reply with quote

Would you make a brief tutorial or doc to share how you have found ways to speed up your code ? I fo rone would be very eager to see and try to implement it myself.
  
Back to top
kguske






PostPosted: Wed Apr 29, 2009 6:04 am    Post subject: Reply with quote

Optimizing JS and CSS on the fly would likely slow down your code, even if the end result to most users is faster. Preoptimizing the individual files wouldn't have a significant impact on the server (bandwidth would be less), but usually makes the client (i.e. the visitor's browser) faster (less to download). Why not always?

First, it helps to understand the multiple ways CSS and JS can be compressed:
- Removing whitespace (blanks, newlines) can save space without altering the code or impacting the client. This is generally referred to as "minifying."
- Replacing JS variable names with shorter variable names can also reduce file size but increases the chance of variables conflicting with other JS
- Using GZ compression can make files even smaller, but takes server time to do on the fly and client time to uncompress. Not only has this has been shown to be slower on the client in some cases, but isn't supported in all browser.

Some JS developers provide multiple versions of their JS. Regular, minified and compressed. Your mileage may vary, but I'll stick with minified versions.

Does this with the news article provide enough info - if not, what else might a tutorial provide?
  
Back to top
nextgen






PostPosted: Wed Apr 29, 2009 5:06 pm    Post subject: Reply with quote

Wow, to the point and well put. I think i really do need to bone up on css alot more and java as well then decide what routes to go. I am not sure what i expected but you did make me realize that when you game in one aspect you will always lose in another. If it is easier on the server it is harder on the user. Faster on the user is harder on the server. A happy medium is just fine. Very Happy
  
Back to top
Display posts from previous:       
Post new topic   Reply to topic    nukeSEO.com Forum Index -> General / Other Stuff All times are GMT - 5 Hours
 
 Page 1 of 1

 

Jump to:   
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-2008 phpBB Group


Page Generation: 0.03 Seconds