Jump to content
MakeWebGames

Code Optimizing...


Karlos

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...