XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.4
    • Fix Version/s: 7.10
    • Component/s: Themes (deprecated)
    • Impact type:
      Configuration Change
    • Upgrade notes:
      Hide

      xhtml template including script tags should rely on h:outputScript JSF tag instead, and use the target attribute with value "pageJsTarget" if script can be pushed at the end of the page (or should because it depends on other resources that are pushed to the end of the page) or "pageJsBodyStartTarget" if script should be pushed at the start of the page body. The target attribute can be omitted if script should be included inline.

      Show
      xhtml template including script tags should rely on h:outputScript JSF tag instead, and use the target attribute with value "pageJsTarget" if script can be pushed at the end of the page (or should because it depends on other resources that are pushed to the end of the page) or "pageJsBodyStartTarget" if script should be pushed at the start of the page body. The target attribute can be omitted if script should be included inline.
    • Sprint:
      nxNag Sprint 7.4.2, nxNag Sprint 7.4.3, nxNag Sprint 7.4.4, nxNag Sprint 7.4.5, nxNag Sprint 7.10.1

      Description

      JS scripts are usually placed in the head tag, but should ideally be moved to the end of the body for page loading efficiency.

      Problem is that some inline scripts need to stay inline for these scripts to be properly re-executed after Ajax refresh, and some RichFaces components assume that JS deps are included in the head (a4j:status for instance).

      => allow deferring this parsing to check impact on page speed, but do not enable it by default.

      Behavior is controlled by a configuration property:

      <component name="org.nuxeo.ecm.platform.webapp.base.properties">
        <extension target="org.nuxeo.runtime.ConfigurationService" point="configuration">
          <property name="nuxeo.jsf.deferJavaScriptLoading">true</property>
        </extension>
      </component>
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.