Quote:
Originally Posted by ncpfree
What is the best to minimize load type and server load?
|
Minimize the number of requests sent to the server. i.e. Number of times the browser has to go fetch something from the server.
Plan your CSS so there are a minimal number of individual styles used. Think recycle.
Combining elements with the same style saves on CSS file size but can be a bit confusing for someone new to CSS.
Making the style in one line instead of neatly spaced out in lines will save on CSS file size but again can be confusing for a beginner in CSS.
HTML Code:
body {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 80%;
background-color: #636954;
margin: 0px;
color: #000000;
}
vs
Code:
body {font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 80%; background-color: #636954; margin: 0px; color: #000000;}