I used to load jQuery library via Google AJAX Libraries API to save my bandwidth. It works in all browsers at the beginning, including Internet Explorer. However, my jQuery scripts suddenly failed to load in Internet Explorer 6.
By theory, the script above should run without any failure. However, it suddenly fails to load in IE6 without reason. It causes my page to have error.
However, with this few lines below, the problem is fixed and it works in all browsers.
What it does:
1. Load jQuery 1.3.2 library via the direct URL at google
2. The second line checks if “jQuery” is undefined (not loaded)
3. If so, load the jQuery library from your website.
As stated above, it works in my case. I haven’t try using this method along with other plugins so it’s possible that it may not work with you.
If it still doesn’t work, most likely it is due to the “$ is not a function” error.
or Subscribe to specific category only :
You must be logged in to post a comment.