On Mar 7, 8:14 pm, Michele <michele.tit...@gmail.com> wrote: > It just looks like the netlistener is just for individual requests > made on the page, not for overall page load information. Yes
> I was > wondering if I should be using netlistener at all. It's starting to > look like I don't need anything from it, as most of the information > I'm looking for can be gathered using other methods. > > In NetExporter, you manually calculate the load times, rather than > getting those from something provided. No, it gets all the timing info from the net panel and adapts to HAR (the output format) needs. > I also haven't seen any code > examples for getting, say, the download size of the page. I'm just > looking for the information in the last line of the Net panel, and > it's apparently much harder to do than I originally thought. See, net.js, updateSummaries() method. The results value is stored in the UI and you could get it from there. On Mar 11, 8:15 pm, Michele <michele.tit...@gmail.com> wrote: > I'm trying to setup listeners for two events: the page starts loading, > and the page finishes loading. That's exactly what NetExport does. See for example how page.startedDateTime field is computed in harBuilder.js > If the initialization method is not the > place to do that, where is? The initialization is perfectly suitable for this. Just just need to implement the constructor function for NetListener. There is an exception on line 67. "NetListener is not defined" > Those listeners should automatically run > for every page when the panel is activated (I have activation working > fine). I'm also trying to get information on the download size/cache > size of the page, and I have found no documentation on how to easily > grab those without manually downloading each file and getting its > size. Do you have any ideas for that? Again, you want to see the updateSummaries method. Honza -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to firebug@googlegroups.com. To unsubscribe from this group, send email to firebug+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/firebug?hl=en.