PDA

View Full Version : Speed up site by cleaning up code


rhythmofthecosmos
01-13-2010, 12:03 AM
Hi,

I have a site www.leehughes.co.uk

It's annoying me that I have a D on the Yslow for speed test and am calling 16 javascript and 4 css scripts ..

I need someone to combine these to get only 1 HTML request and clean up code.. Hopefully to get a A in the Yslow

Not a big job but easy money for someone who knows what they are doing.

20

edbr
01-13-2010, 01:36 AM
try this first , move all your scripts either to the head or better yet put them on a page and link to it.
check your code with a validator, see if that helps.
got these warnings
Result: 0 errors / 16 warnings

line 198 column 1 - Warning: <input> element not empty or not closed
line 204 column 6 - Warning: <input> element not empty or not closed
line 240 column 1 - Warning: <style> isn't allowed in <div> elements
line 172 column 1 - Info: <div> previously mentioned
line 275 column 21 - Warning: missing </div> before <li>
line 276 column 1 - Warning: inserting implicit <ul>
line 276 column 1 - Warning: missing </ul> before </div>
line 286 column 21 - Warning: missing </div> before <li>
line 287 column 1 - Warning: inserting implicit <ul>
line 287 column 1 - Warning: missing </ul> before </div>
line 297 column 21 - Warning: missing </div> before <li>
line 298 column 1 - Warning: inserting implicit <ul>
line 298 column 1 - Warning: missing </ul> before </div>
line 154 column 4 - Warning: trimming empty <span>
line 154 column 1 - Warning: trimming empty <p>
line 155 column 166 - Warning: trimming empty <em>
line 168 column 743 - Warning: trimming empty <span>

rhythmofthecosmos
01-13-2010, 09:30 AM
I don't know how to move the scripts onto one file though.. that's my point :)