webmetrics / browsermob-proxy

NOTICE: this project has been forked and is being maintained at https://github.com/lightbody/browsermob-proxy
https://github.com/lightbody/browsermob-proxy
Apache License 2.0
234 stars 773 forks source link

onContentLoaded never set in har #30

Closed pierredelacelle closed 11 years ago

pierredelacelle commented 12 years ago

I'm using browsermob proxy through the REST API.

I noticed that onContentLoaded is never set in the har that we get from browsermob.

I read the source code as well and i didn't see anything about setting it in the har.

There is setters and accessors for onContentLoad but I can't see when they are (or have to be) triggered.

lightbody commented 11 years ago

I don't think BrowserMob Proxy will ever provide this. The reason is that it requires knowledge inside the browser, which BMP doesn't really have access to. What I recommend is if you want more complete timings, you should execute some JavaScript to fetch the Navigation Timing information and then sprinkle in that data in to the HAR returned by the proxy.

Sorry I don't have a better answer, and sorry it took me a year to respond!