Tapestry 5
  1. Tapestry 5
  2. TAP5-549

JavaScript libraries should be combined into a single request

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.1
    • Fix Version/s: 5.1.0.2
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      It should be possible to create a virtual resource under /assets that represents all the JavaScript libraries for a particular page. I envision this as a Base64 stream that is the actually a composite list of paths to the real JavaScript files; encoded in such a way that when multiple pages use the same set of JavaScript libraries, they can share a single stream.

      The combined stream should be gzipped (if client supports it) and should be packed/minimalized. Some extra bookkeeping is needed to track what JS files were combined (the client tracks loaded JS libraries for when an Ajax partial update requires new libraries that were not required for the main page render, for example, a partial update that includes a form with client-side validation).

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Howard M. Lewis Ship
              Reporter:
              Howard M. Lewis Ship
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development