mixpanel-js icon indicating copy to clipboard operation
mixpanel-js copied to clipboard

Image Tracking Doubles Request in Chrome

Open EricByers opened this issue 10 years ago • 3 comments

In Chrome (and potentially others) setting the img.src before appending it to the Dom triggers the img to be loaded. It also can be loaded again when it is attached to the DOM, causing a double track.

Moving the setting of the src till after it is appended alleviates this issue.

EricByers avatar Jun 18 '14 16:06 EricByers