Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if piwik.js is already loaded and if so, do not load again #6833

Open
tsteur opened this issue Dec 9, 2014 · 0 comments
Open

Check if piwik.js is already loaded and if so, do not load again #6833

tsteur opened this issue Dec 9, 2014 · 0 comments
Labels
c: Performance For when we could improve the performance / speed of Matomo. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@tsteur
Copy link
Member

tsteur commented Dec 9, 2014

See this blog post: http://calendar.perfplanet.com/2014/the-pain-of-duplicate-scripts/

Eg by giving the script element an ID and checking whether it is already in the DOM before loading piwik.js again.

@tsteur tsteur added Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. c: Performance For when we could improve the performance / speed of Matomo. labels Dec 9, 2014
@mattab mattab added this to the Mid term milestone Jan 6, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Performance For when we could improve the performance / speed of Matomo. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

2 participants