Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-821

put resource path in web.xml halvs size of produced html code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.1.1, 1.1.2, 1.1.3, 1.1.4-SNAPSHOT, 1.1.5-SNAPSHOT
    • None
    • Tree2
    • None

    Description

      I investigated the produced html code by tree2 control.

      I replaced
      /faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11661031/tree2.HtmlTreeRenderer/images/
      by just
      ../imgs/
      reduced the size of the produced code by 50% !

      I found no way to replace this path for a certain component or all components.

      I understand:
      The purpose of this long path is to have all resources in place so a change of the library also changes its used resources.
      But in my project an html page of 4Mbyte would become just 2 Mbyte which is a reasonable size to render for todays browsers.

      We should
      have a way to optimze this wast of space somehow for projects that are little bigger than nice demo pages.

      Thank you for this great project and the rich efforts you spend!

      Attachments

        Activity

          People

            Unassigned Unassigned
            fhefter Frank Hefter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: