sendPagePerformance is called too soon
william-p opened this issue · comments
Hi,
i think that sendPagePerformance
method is called too soon in process.
Bucky parse window.performance.timing
on DOMContentLoaded
event (from document
) (code), but at this time some fields (domComplete
, loadEventStart
, loadEventEnd
) are not filled.
- I tried to bind
load
event (fromwindow
) but event fired too quickly andloadEventEnd
is empty - i tried to add
setTimeout
, it works but so crappy
I think that is more smart to call sendPagePerformance
just before first post
to server.
What do you think ?