Ticket #1225 (closed New feature: wontfix)

Opened 23 months ago

Last modified 23 months ago

Merge JavaScript-files

Reported by: Innocentus Owned by:
Priority: normal Milestone:
Component: Core Keywords:
Cc: Sensitive: no

Description

Some plugins need an additional javascript file to be loaded by the visitor (f.ex. the ClickHeats plugin). Those need to be included manually with html-tags by the responsible webmaster.

It would be better to give the active plugins the opportunity of adding additional javascript code to a global stack which is finally minimized and loaded and executed by the main piwik-javascript code of the piwik tag.

One can even think about adding a javascript piwik library for basic mouse-, keyboard-, browserinfo- and browserplugin-tracking so that other plugins can use these often used routines more easily and in a more standardized and secure way.

With best regards Inno

Change History

Changed 23 months ago by matt

  • status changed from new to closed
  • resolution set to wontfix

This is difficult (impossible?) to get it right, as the use cases are infinite and not defined in advance. Usually, it is not just the case that you add another JS file to your site, it also comes with its function calls and various logic. If we can, one day, identify a pattern, we would reconsider

Changed 23 months ago by vipsoft

  • keywords javascript, external, plugins, minimize, stack, library, piwik, standardized, global removed
Note: See TracTickets for help on using tickets.