jawr
  1. jawr
  2. JAWR-190

JAWR & DWR2 when global = false

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.3.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I'd like to use DWR not on all pages but only on some of them.
      So I tried to set up
      jawr.js.bundle.dwr.global = false

      In this case pages that don't include DWR bundle, currently anyway include JAWR dwr initialization script like this:

      <script type="text/javascript">if(!JAWR){var JAWR = {};};;JAWR.jawr_dwr_path='/dwr';JAWR.dwr_scriptSessionId='BE9A4806FB86454EFF2F7BA39244B080';JAWR.app_context_path='';</script>

      Is it intended behaviour? /or configuration with DWR bundle global=false isn't supported?
      Looks like DWR works fine on our main page in this case

        Activity

        Hide
        icefox added a comment -

        Hi,

        In the current version of Jawr, the configuration property jawr.js.bundle.dwr.global is not supported.

        How would you like it to work?
        Is it an issue for you to have the initialisation script in your pages?

        Cheers,

        Show
        icefox added a comment - Hi, In the current version of Jawr, the configuration property jawr.js.bundle.dwr.global is not supported. How would you like it to work? Is it an issue for you to have the initialisation script in your pages? Cheers,
        Hide
        leokom added a comment -

        1) Well, I expected if that flag=false, that should mean the initialization script will be included in 'lazy' way - only when first bundle that is dwr-related, is loaded on the page.

        2) My task is to minify several pages to make them faster for customers with bad internet channel - that's why I'd prefer that init script would be absent (for sure it's not critical for me).

        Show
        leokom added a comment - 1) Well, I expected if that flag=false, that should mean the initialization script will be included in 'lazy' way - only when first bundle that is dwr-related, is loaded on the page. 2) My task is to minify several pages to make them faster for customers with bad internet channel - that's why I'd prefer that init script would be absent (for sure it's not critical for me).

          People

          • Assignee:
            icefox
            Reporter:
            leokom
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: