Karlos Posted October 20, 2008 Share Posted October 20, 2008 Can anyone show how to optimize some codes? Quote Link to comment Share on other sites More sharing options...
radio_active Posted October 20, 2008 Share Posted October 20, 2008 Re: Code Optimizing... Haha, what do you mean exactly? Quote Link to comment Share on other sites More sharing options...
POG1 Posted October 20, 2008 Share Posted October 20, 2008 Re: Code Optimizing... you on about optimizing php? Quote Link to comment Share on other sites More sharing options...
Karlos Posted October 20, 2008 Author Share Posted October 20, 2008 Re: Code Optimizing... yes. my game is running slowly and i know i need to optimize my code as mtg told me and im not sure how Quote Link to comment Share on other sites More sharing options...
POG1 Posted October 20, 2008 Share Posted October 20, 2008 Re: Code Optimizing... is there a site or program that will optimize CSS? it's 2 confusing for me to do it lol Quote Link to comment Share on other sites More sharing options...
Karlos Posted October 20, 2008 Author Share Posted October 20, 2008 Re: Code Optimizing... its php i need optimizing :-( Quote Link to comment Share on other sites More sharing options...
radio_active Posted October 20, 2008 Share Posted October 20, 2008 Re: Code Optimizing... Id suggest putting your CSS Style sheets on an external .css file instead of the header and then running it off the header through a link. Quote Link to comment Share on other sites More sharing options...
POG1 Posted October 20, 2008 Share Posted October 20, 2008 Re: Code Optimizing... "http://www.cssoptimiser.com/" that was i was looking for :P File size before optimization: 1.79 KB File size after optimization : 1.39 KB Saving: 22.37% :evil: Quote Link to comment Share on other sites More sharing options...
radio_active Posted October 20, 2008 Share Posted October 20, 2008 Re: Code Optimizing... Sounds interesting! Quote Link to comment Share on other sites More sharing options...
Karlos Posted October 20, 2008 Author Share Posted October 20, 2008 Re: Code Optimizing... Id suggest putting your CSS Style sheets on an external .css file instead of the header and then running it off the header through a link. i do :) "http://www.cssoptimiser.com/" that was i was looking for :P File size before optimization: 1.79 KB File size after optimization : 1.39 KB Saving: 22.37% :evil: does it do it for ya or something? Quote Link to comment Share on other sites More sharing options...
POG1 Posted October 20, 2008 Share Posted October 20, 2008 Re: Code Optimizing... all u need to do is provide the CSS Quote Link to comment Share on other sites More sharing options...
Karlos Posted October 20, 2008 Author Share Posted October 20, 2008 Re: Code Optimizing... any idea for php aswell? thats really the main problem :| Quote Link to comment Share on other sites More sharing options...
Karlos Posted October 20, 2008 Author Share Posted October 20, 2008 Re: Code Optimizing... Well My Results For The CSS Optimizer Was: CSS Optimization completed at 0.00416 seconds File size before optimization: 2.36 KB File size after optimization : 1.4 KB Saving: 40.43% Quote Link to comment Share on other sites More sharing options...
mdshare Posted October 21, 2008 Share Posted October 21, 2008 Re: Code Optimizing... didn't check but what does it do ? removing all whitespace and line breaks ... that's not optimizing code at all ... yes. my game is running slowly and i know i need to optimize my code as mtg told me and im not sure how start looking at your mysql syntax and optimize that Quote Link to comment Share on other sites More sharing options...
Tezza` Posted October 21, 2008 Share Posted October 21, 2008 Re: Code Optimizing... any idea for php aswell? thats really the main problem :| Ask our good friend google, he knows a lot. Quote Link to comment Share on other sites More sharing options...
POG1 Posted October 21, 2008 Share Posted October 21, 2008 Re: Code Optimizing... didn't check but what does it do ? removing all whitespace and line breaks ... that's not optimizing code at all ... yes. my game is running slowly and i know i need to optimize my code as mtg told me and im not sure how start looking at your mysql syntax and optimize that it will just group things together. so if you have padding:0; 10 times in your CSS it will add them into a number of classes like; #demo, #demo1, demo2 { pading:0; } Not a huge optimization but when you have slow connection every little helps :) Optimizing queries and database tables would be a much better improvement to the CSS thing. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.