-
Notifications
You must be signed in to change notification settings - Fork 81
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
Moving jquery ui local and updating file structure (datepicker) #1733
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Performance improvements!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few questions:
- Is there a minified version that we can use for
jquery-ui.js
? This PR removesjquery.min.js
, which was 35.8KB (11.7KB zipped) and replaces it with an unminified version of 629KB (130KB zipped). - Are
jquery-ui.structure.min.css
andjquery-ui.theme.min.css
folded intojquery-ui.min.css
now. Or do we not need them any longer? - The datepicker doesn't seem to be translated any longer. So when I select Spanish as my default language, I still get the English date picker. (Though it seems like this doesn't work properly on staging either).
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@clash99 Thanks for clarifying. Do we have a follow-up ticket filed to implement processes to minify JS and CSS files, or should I open one?
Jquery UI images Adjust i18n path Sidestep date picker localization files and use transifex Removed unnecessary type from script tags Combined jquery-ui css files
4ef1c6b
to
d33c99b
Compare
@@ -45,6 +42,33 @@ | |||
changeYear: true, | |||
}); | |||
}); | |||
======= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a rebase conflict that wasn't resolved properly.
<script src="{% static 'js/jquery-ui.min.js' %}"></script> | ||
<script src="https://cdn.rawgit.com/jquery/jquery-ui/1.12.1/ui/i18n/datepicker-{{ LANGUAGE_CODE }}{% if LANGUAGE_CODE == 'en' %}-GB{% endif %}.js"></script> | ||
<script src="{% static 'jquery-ui/1.12.1/js/jquery-ui.js' %}"></script> | ||
<script src="{% static 'js/form_submit.js' %}"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line now appears twice (see line 31).
Proposed changes in this pull request
When should this PR be merged
Risks
Follow-up actions
Checklist (for reviewing)
General
migration
label if a new migration is added.Functionality
Code
Tests
Security
Documentation