I am developing an extension from Chrome and I need to make some changes to the page code after loading. The problem is the window. The loaded event is not useful anymore, where almost any website is using AJAX. You can not assume that all the content has already been loaded because window.onload has been removed before loading all AJAX requests. So I want to be able to capture all the exchange related to any XMLHttpRequest and want to handle that event in my detail ... Is this also possible? What prototypes do help here?
I do not believe that this is possible directly, although you might have the window. XMLHttpRequest
with its own object that acts as a proxy on the actual XMLHttpRequest
(but feeds global callback to its own code).
But you really believe that there is nothing with a XMLHttpRequest
to load the content anytime on a script any interaction event or even somebody Can write load of content at unrestricted timeout.
If you ever need a document at any time, you probably need it.
Comments
Post a Comment