Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-133

Provide a dynamic mechanism for including external javascripts

    XMLWordPrintable

Details

    • Task
    • Resolution: Outdated
    • Major
    • 5.0
    • None
    • None
    • None

    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
      • what if different modules provide the same js lib with different versions, e.g. jQuery?

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              fgrilli Federico Grilli
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoR