Skip to content

[~FEATURE] Concatenate core js files#134

Open
riker09 wants to merge 6 commits into
webcomm:2.0from
riker09:feature-concat-core-js
Open

[~FEATURE] Concatenate core js files#134
riker09 wants to merge 6 commits into
webcomm:2.0from
riker09:feature-concat-core-js

Conversation

@riker09
Copy link
Copy Markdown
Contributor

@riker09 riker09 commented Oct 1, 2015

This fixes #100 and addresses #111.

The most frequently used Magento core JS files are concatenated into one file, minimizing HTTP requests. The uglification processs might destroy some prototype function, I think I've stumbled accross a blog post somewhere, but this is highly speculative and has not been tested. So far, at least product page still works. :)

Volker Thiel added 6 commits September 22, 2015 09:23
This minimizes additional HTTP requests while still maintaining the possibility for third-party modules to add custom JS and maybe even merging JS files from backend config (untested!).
Fixes #100 and addresses #111
@riker09
Copy link
Copy Markdown
Contributor Author

riker09 commented Oct 6, 2015

Just as I expected I ran into some errors when prototype was uglified. The reason is that uglifyjs renames some super global variable names of prototype which some function depends upon. The solution is very simple: Just don't do it. Lucky for me, uglifyjs comes with an option that lets me skip this process.

As a result the core files are still minified with all the needed functions (and global variable names) still intact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Conact Magento JS Files

1 participant