There a some websites (like youtube) which load most of their content after the DOM is ready through javascript. How can I determine, that all of this requests are done, before I inject my code.
window.onload = function() {};
doesn't work here. My entry-point is always before the whole Ajax content is loaded. Is there something like a global promise?