Skip to content

Changing Uize Overrides #55

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

quentinbrooks
Copy link

Presently, Uize static functions can be overridden. moduleUrlResolver, in particular, is specifically designed to be overridden. This means Uize.js must be loaded, then moduleUrlResolver must be changed, and then the rest of the modules would need to be loaded. This would require special-casing the Uize.js inclusion, which we currently load as part of our concatenated js payload.

This changes Uize so you can specify overrides before Uize.js is loaded, that way any existing override code can be moved before the Uize.js load without requiring changes.

We have tested this change for a week on QA and didn't notice any issues, and now it is live on www.zazzle.com .

Let me know if anything is fishy about this code, or if you think it should be done in a different way.

Thanks!
Quentin Brooks

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.

1 participant