I am loading a part of html through ajax. This part has javascript code that runs on document.ready. My understanding was that dom ready dependent code would not be executed because event has already been fired before ajax call happened.
However, that's not the case. I can see console.log placed inside document.ready.
Please explain whats happening.
Thanks in advance.