-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Experimental: JS compression via Closure Compiler #20967
base: 5.x-dev
Are you sure you want to change the base?
Experimental: JS compression via Closure Compiler #20967
Commits on Jul 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e37f532 - Browse repository at this point
Copy the full SHA e37f532View commit details -
Fix: Closure Compiler warning
JSC_USELESS_CODE
infor
-loops``` var i = 0; for (i; i < object.length; i++) {} ``` becomes ``` var i; for (i = 0; i < object.length; i++) {} ``` Alternative (unreadable): ``` var i = 0; for (; i < object.length; i++) {} ```
Configuration menu - View commit details
-
Copy full SHA for 13b1c12 - Browse repository at this point
Copy the full SHA 13b1c12View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8ea737 - Browse repository at this point
Copy the full SHA e8ea737View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56d7926 - Browse repository at this point
Copy the full SHA 56d7926View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7eae018 - Browse repository at this point
Copy the full SHA 7eae018View commit details -
Fix: Closure Compiler error
JSC_UNDEFINED_VARIABLE
- `Matomo_Overla……y_Client` and `piwik_track` undeclared
Configuration menu - View commit details
-
Copy full SHA for 017ba83 - Browse repository at this point
Copy the full SHA 017ba83View commit details -
Experimental: suppress JSDoc type checks in
piwik.js
for Closure Co……mpiler This disables type warnings: `JSC_UNRECOGNIZED_TYPE_ERROR`, `JSC_TYPE_MISMATCH`, `JSC_WRONG_ARGUMENT_COUNT` and more.
Configuration menu - View commit details
-
Copy full SHA for 4aee9fa - Browse repository at this point
Copy the full SHA 4aee9faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 31e8d64 - Browse repository at this point
Copy the full SHA 31e8d64View commit details -
Configuration menu - View commit details
-
Copy full SHA for 479d683 - Browse repository at this point
Copy the full SHA 479d683View commit details -
Experimental: add global methods used by Matomo to
externs
definiti……on for `piwik.js`
Configuration menu - View commit details
-
Copy full SHA for 8db0c32 - Browse repository at this point
Copy the full SHA 8db0c32View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f681b6 - Browse repository at this point
Copy the full SHA 0f681b6View commit details -
Experimental: add public Tracker API methods to
externs
definition ……for `piwik.js` + Copy all functions that begin with `this.nameOfFunction` from `function Tracker()` in `piwik.js`. Exclude functions inside `/*<DEBUG>*/ … /*</DEBUG>*/`-markers. + Rename inside `piwik.externs.js` via find `^this\.` and replace by `Tracker.` + Empty method bodies inside `piwik.externs.js` via find `\{(\n .+|\n)+\n\};` and replace by `{};`
Configuration menu - View commit details
-
Copy full SHA for fa83100 - Browse repository at this point
Copy the full SHA fa83100View commit details -
Experimental: add public Tracker API methods to
externs
definition ……for `piwik.js` - fix `Tracker.optUserOut`
Configuration menu - View commit details
-
Copy full SHA for 68a0c14 - Browse repository at this point
Copy the full SHA 68a0c14View commit details -
Configuration menu - View commit details
-
Copy full SHA for a0a6b09 - Browse repository at this point
Copy the full SHA a0a6b09View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7093de - Browse repository at this point
Copy the full SHA d7093deView commit details -
Configuration menu - View commit details
-
Copy full SHA for c3c2be8 - Browse repository at this point
Copy the full SHA c3c2be8View commit details -
Experimental: enclose fixed property names of data-object in quotes t…
…o exclude them from Closure Compiler munging
Configuration menu - View commit details
-
Copy full SHA for f756b7c - Browse repository at this point
Copy the full SHA f756b7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b2e0fe - Browse repository at this point
Copy the full SHA 0b2e0feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 542bd46 - Browse repository at this point
Copy the full SHA 542bd46View commit details
Commits on Jul 12, 2023
-
Experimental: enclose still missing fixed property names of data-obje…
…ct in quotes to exclude them from Closure Compiler munging
Configuration menu - View commit details
-
Copy full SHA for 919104c - Browse repository at this point
Copy the full SHA 919104cView commit details -
Experimental: prepend all private property names with an underscore
Some common JS names defined in the default Closure Compiler `externs` are not munged e.g.: location, name, target, type, href, enabled, timeout, interval When renamed by prepending with an underscore they get correctly munged.
Configuration menu - View commit details
-
Copy full SHA for af865aa - Browse repository at this point
Copy the full SHA af865aaView commit details -
Experimental: rename functions colliding with common names
Some common JS names defined in the default Closure Compiler `externs` are not munged: find, push, trim When renamed the functions and calls get correctly munged.
Configuration menu - View commit details
-
Copy full SHA for 44c6535 - Browse repository at this point
Copy the full SHA 44c6535View commit details -
Experimental: add missing global methods used by Matomo to
externs
……definition for `piwik.js`
Configuration menu - View commit details
-
Copy full SHA for ebdfe38 - Browse repository at this point
Copy the full SHA ebdfe38View commit details -
Configuration menu - View commit details
-
Copy full SHA for 29e22e4 - Browse repository at this point
Copy the full SHA 29e22e4View commit details