Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-549

JavaScript libraries should be combined into a single request

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.1.0.1
    • 5.1.0.2
    • tapestry-core
    • 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).

      Attachments

        Issue Links

          Activity

            People

              hlship Howard Lewis Ship
              hlship Howard Lewis Ship
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: