making sure ui can be manipulated

making sure ui can be manipulated

hello,

the first thing you learn about jquery is that you can only start manipulating dom objects in your code once your page is 'ready' (e.g. $(document).ready(...)).

i am wondering what the pattern is for cases when scripts are loaded dynamically (e.g. jsonp) or run inline as a part of dynamically loaded content. can one safely assume the  DOM is ready at this point?

hope it makes sense,

thanks