holidayextras / barometer

Framework agnostic browser performance metrics
MIT License
5 stars 5 forks source link

More control over when buffer gets flushed #4

Open msaspence opened 7 years ago

msaspence commented 7 years ago

Currently the buffer is flushed every 5 seconds, more complex models may be nice to have:

theninj4 commented 7 years ago

This sounds great - we could set sensible defaults and let users override as necessary. These changes may need to come after some of the other network optimisation stuff, right now the numbers are aligned to mitigate any possible network performance issues. It could be possible to tweak the above options and introduce performance issues.

msaspence commented 7 years ago

This functionality could also be loaded in a second phase, i.e. the embedded script has a super simple implementation to save bytes. A "phase two" script could replace this with an implementation with more options.