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

moment.js only load required/configured locales #1779

agitator opened this Issue Sep 26, 2016 · 1 comment


None yet
2 participants
Copy link

agitator commented Sep 26, 2016

trying to slim down the Plone default.js which has grown to whooping 1.5mb in my project

I found that for example moment-with-locales.min.js is already 172kb because all locales are included.
Do we have a way to only include the locales needed for the configured languages of a Plone site?


This comment has been minimized.

Copy link

davilima6 commented Feb 8, 2019

Done in:

Now we're at 55kb (3x drop) o/ Thanks for the suggestion!

UPDATE: plus 2-3kb for western locales and 5-6kb for russian, ukrainian, slovenian, arabic etc)

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