Thursday, December 3, 2009

[jQuery] Slow connection + timing issue

I'm not sure if I can explain this very well but... When running IE
6-8 on a slow connection, JQuery seems to bomb before the page is
ready. Errors like, JQuery is undefined, $ is undefined and so on
occur. However, when I switch over to a faster connection (i.e. on
the internal network) there are no errors. On a slow connection, the
very first line of jquery code in the webpage errors out. I checked
the paths to jquery and both the slow and fast connections can find
it.

Here is the order of the script tags

<SCRIPT src="jquery-1.3.2.min.js" type="text/javascript"></SCRIPT>
<link type="text/css" href="jquery-ui-1.7.2.custom.css"
rel="stylesheet" />
<SCRIPT src="jquery-ui-1.7.2.custom.min.js" type="text/javascript"></
SCRIPT>
<SCRIPT src="jquery.blockUI.js" type="text/javascript"></SCRIPT>
<SCRIPT src="jquery.ajaxmanager.js" type="text/javascript"></SCRIPT>
<SCRIPT src="jquery.tools.min.js" type="text/javascript"></SCRIPT>
<SCRIPT src="jquery.validate.min.js" type="text/javascript"></SCRIPT>

Thanks.

No comments: