Support » Plugin: WP-Matomo (WP-Piwik) » Sparkline files loading when toolbar disabled

  • Resolved GermanKiwi


    Hi, I’ve noticed that my webpage source includes a reference in the footer to “wp-piwik-spark.css” and “jquery.sparkline.min.js” coming from this plugin.

    I’ve read the support thread here which explains that the sparkline files are used for the little Piwik graph in the Admin toolbar, and should only be loaded in the page source for a user who is logged in (as I currently am).

    However, I have disabled the toolbar from showing on my site, via the option in my Profile settings “Show Toolbar when viewing site”. So when I view my homepage, there is no toolbar – the toolbar is only there when I’m viewing the Admin pages.

    Therefore, shouldn’t that mean that the sparkline files should only be loaded for the Admin pages, and not for the front-end webpages – even when I’m logged in?

    Oh and incidentally (to change the subject a bit), when I was searching for what sparkline actually was, I discovered that there is a newer version available here which adds support for jQuery 1.10.0 – your plugin is still using the previous version of sparkline – maybe this newer version would be better, now that WordPress itself is using jQuery 1.10.x? (Although I’m no expert on jQuery so I don’t really know what relevance this has!)


Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sparkline files loading when toolbar disabled’ is closed to new replies.