@dhoko opened this Issue on August 25th 2015


Why don't you split the source into severals files? 5792L in Piwik.js :-1:
You can then build the source via browserify.

/* alias frequently used globals for added minification */
documentAlias = document,
navigatorAlias = navigator,
screenAlias = screen,
windowAlias = window,

We can remove these using a closure (to create a private scope too):

;(function(docAlias, winAlias, navAlias, screenAlias, undefined) {

// code 
})(document, window, navigator, screen);

What do you think ?

I can start to split the source if you want, I think the best way to begin is via the Query Object.

@tsteur commented on August 26th 2015 Member

Heya, closing it as duplicate of #6106 . It's possible to do and would be great to have but doesn't have much priority for us currently.

This Issue was closed on August 26th 2015
Powered by GitHub Issue Mirror