Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript preventing page from loading

Status
Not open for further replies.

nerdhurd2

Technical User
Jul 5, 2005
7
US
Greetings,

I have a few users of my website that mention the pages do not completely load. When I checked one of their computers, I looked at the source and noticed that the page load stops at my javascript call which is in the page header...although the javascript seemed to load fine! Seems strange, they are using IE 6.0.2600 which seemed to work fine on other computers when i tested it. I guess it has something to do with his java settings?

Does anyone else seem to run into this? Sense you have to call the script in <header> you cant really move it to the bottom of the page, and About 5% of my users have mentioned this id like to avoid this problem. Any suggestions? can I do anything so that the browser will just NOT try to load the script if it has problems doing so? Its a navagation script so i dont want to just remove it

Heres my call to the script:

<script type='text/javascript'>
function Go(){return}
</script>
<script type='text/javascript' src='/javascript/loggedinmenu_var.js'></script>
<script type='text/javascript' src='/javascript/menu_com.js'></script>
<noscript>Your browser does not support script</noscript>


thankyou
 
Actually I think you can place script anywhere in the page. I could be wrong but try placing everything you have in the header right before the </body> tag.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top