Tapestry 5
  1. Tapestry 5
  2. TAP5-313

Provide configuration to move links to JavaScript libraries to the top of the page

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.15
    • Fix Version/s: 5.0.16
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      We've had a discussion about the Javascript issue here:
      https://issues.apache.org/jira/browse/TAPESTRY-2364

      Currently Tapestry puts Javascript on the bottom of the page. This will make the page look like it loads faster, because the browser can start rendering the page before the Javascript libraries are loaded.

      It is quite common however if you want your page to work without Javascript, that you render out full HTML and then use Javascript to hide parts on the client before the page renders. This way everything is visible to people that don't have Javascript enabled in their browser, but people with Javascript will get a better user-experience.

      Currently the result is messy because you see the page being rendered and once the Javascript libraries are all loaded, the sections are hidden. It is all visible to the user and you have to come up with all kinds of hacks to work around that issue. Therefore it would be greatly appreciated if it were possible to configure Tapestry so that users can choose to include the libraries in the head section again.

      Having the Javascript included in the head is the way most people are used to, so it would also make things easier for the average Tapestry user.

        Issue Links

          Activity

          Onno Scheffers created issue -
          Howard M. Lewis Ship made changes -
          Field Original Value New Value
          Assignee Howard M. Lewis Ship [ hlship ]
          Howard M. Lewis Ship made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Howard M. Lewis Ship made changes -
          Summary Make it possible to put Javascript libraries in the head section again Provide configuration to move links to JavaScript libraries to the top of the page
          Howard M. Lewis Ship made changes -
          Resolution Fixed [ 1 ]
          Fix Version/s 5.0.16 [ 12313427 ]
          Status In Progress [ 3 ] Closed [ 6 ]
          Howard M. Lewis Ship made changes -
          Link This issue incorporates TAP5-373 [ TAP5-373 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development