Your post is a little confusing owing to what appear to be a few typos. But assuming that you at least tried the code that you have in the post, that sounds like it should work. But without actually seeing the page, it's impossible to know for sure. Obviously at some point you either did something, and/or neglected to do something that resulted in the script not functioning, as the result you report is what would happen were there no script at all.
About the defer - The defer attribute may be specified as defer="defer" or simply as defer. Though a standard attribute, as far as I know, it is only used by IE, and can be problematical in that browser, especially when other scripts are on the page. When it works though it speeds thing up in IE for this script, so is potentially useful. However, if it causes a problem, it may simply be removed. IE will use a slightly slower but less error prone path to initialization.
Defer probably has nothing to do with the trouble you are having though. If you want more help:
Please post a link to the page on your site that contains the problematic code so we can check it out.
Bookmarks