On Jul 13, 2:38 pm, Simon Ferndriger <[email protected]>
wrote:
> Hi
>
> I am interested in detecting when an image resource is loaded in any
> possible way (by JavaScript new Image(), by <img src="">, as background
> image via CSS, etc)  with JavaScript.
> When opening Firebug and selecting the network tab, there is exactly this
> list showing.
>
> How do you do that?

Firebug is using:
nsIHttpActivityObserver
nsITraceableChannel
nsIObserver (for HTTP envents)

Checkout these pages:
https://developer.mozilla.org/en/Monitoring_HTTP_activity
https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIHttpActivityDistributor

And firebug source code here:
https://github.com/firebug/firebug/blob/master/extension/content/firebug/net/httpActivityObserver.js

Honza

-- 
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug

Reply via email to