Hi,
this should be a basic issue, so I was wondering why I ran into it and couldn't find a solution so far:
My page uses different ad tags to display banner ads. I have no influence on the tags, they may very well deliver all sorts of nasty document.writes within document.writes and so on.
So far, I was initializing all jquery functionality via an init() function just before the body, like so:
...
<script type="text/javascript">init();</script>
</body>.
This worked very fine. No issues, and jquery functionality was immediately present.
Now comes the problem: I am desperately trying to get rid of this behavioral mark-up and include my init() function within a document.ready() event. If I do this, though, the event will only fire after all banner ads have been loaded, meaning that all jquery functions will only become available after a few seconds, which is not an option at all. This is very strange, because the docs state the opposite. How come? And what can I do about it without using my former method?
Thanks,
Ben