boomerang icon indicating copy to clipboard operation
boomerang copied to clipboard

Performance Audit 2017: Memory init()

Open nicjansma opened this issue 7 years ago • 3 comments

The Memory plugin's init() frequently shows up in JavaScript CPU profiles. While it doesn't take a long time, we can often see a few ms of activity.

image

It appears the call to navigator.getBattery() might be expensive. We should investigate if we can defer this work until the beacon (off the critical path).

nicjansma avatar Dec 22 '17 14:12 nicjansma

if the battery API is being deprecated, we might end up dropping this.

bluesmoon avatar Dec 22 '17 15:12 bluesmoon

PR for this fix has been merged into our private organizational fork and should land in this repository in coming weeks.

ashenoy2014 avatar May 08 '19 00:05 ashenoy2014

@nicjansma , if this was Fixed by "Akamai" is this backported with one of the last akamai-backport PRs? Or could this Backported? regards, Sascha

mc-chaos avatar Nov 18 '20 11:11 mc-chaos