Details
-
Task
-
Resolution: Outdated
-
Major
-
None
-
None
-
None
-
-
Empty show more show less
-
Empty show more show less
Description
We currently hardcode paths to jquery.js and jquery.transition.js used in m-ui-vaadin-common-widgets in info.magnolia.ui.vaadin.integration.servlet.MultipleBrowserWindowsApplicationServlet.writeAjaxPageHtmlVaadinScripts(..). Of course, we need a more flexible way of including external js which could be provided by custom widget modules as well.
Notes:
- place external js files into VAADIN/js (use gwt.public folder only for resources needed by GWT compiler, i.e. those used by ClientBundle)
- aggregate and minify all the external js files - ensure external js loading order
- we could use http://requirejs.org/ to that purpose
- what if different modules provide the same js lib with different versions, e.g. jQuery?
Checklists
Acceptance criteria