need help with my website
|
12-09-2013, 12:27 AM
(This post was last modified: 12-09-2013 12:32 AM by iSpeedLink.com.)
Post: #4
|
|||
|
|||
RE: need help with my website
Quote:one problem which seems unfix-able Depends on how much control you have over how the pages are generated. Most JS file links do not belong in the <HEAD>. Move JS to just before the </body> <script src="example.js" async></script> <script async src="example.js" ></script> If you cannot move the JS to just before the </body>, you can try to add the ASYNC attribute If you stay with XHTML use <script async="async"> DISCLAIMER: I have never used the following scripting method but have seen it used by programmers that seem to know what they are doing. The script is located before the </body> . (function(){ var js = document.createElement('script'); js.type = 'text/javascript'; js.async = true; js.src = 'http://mysite.com/example.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(js, s); })(); You should fix your HTML errors. The table attributes used (e.g. align, cellpadding, cellspacing, cellspacing, nowrap) are obsolete. As is the font tag (e.g. <font color="#4B7AA0">) You have a serious HTML Error, not to mention a table should not be used for formatting. You have a row terminator </tr> causing the subsequent <td> and </tr> tags to generate HTML errors. Line #221: <tr><td class="thead">Your Profile</td></tr> <td class="vbmenu_option"> <a href="profile.php?do=editprofile" title="Edit Your Details">Edit Your Details</a></td> </td> </tr> Also some of your HTML is written for HTML DocTypes and you have a docType of XHTML 1.0 Transitional |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)