Uploaded image for project: 'Airavata'
  1. Airavata
  2. AIRAVATA-2165

In Firefox, portal pages are loaded twice more, with errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.17
    • None
    • None

    Description

      In Firefox (doesn't seem to affect Safari or Chrome), every time a portal page loads, the page gets loaded again, twice.

      I tracked this down to this part of the web page

      <!-- Jira Issue Collector - Request Feature -->
      <script type="text/javascript"
              src=""></script>
      
      
      <script type="text/javascript"
              src=""></script>
      

      Apparently the empty src path is interpreted as meaning that the current URL should be loaded as a script.

      Since the web page is loaded into a <script> tag, the browser tries to interpret it as JavaScript but fails, so I also see this in the console

      09:04:27.443 SyntaxError: expected expression, got '<'1dashboard:1
      09:04:27.891 SyntaxError: expected expression, got '<'1dashboard:1
      

      For the most part this is harmless. But since it loads the whole page 3 times, it takes about 3 times as long to load each page. Also, some of the JavaScript only runs on the $(document).ready(..) event, and this code won't run until the page is loaded 3 times, during which time interactive portions of the page are unavailable.

      I verified that this bug affects seagrid.org as well.

      I'll post a screenshot of the network requests which will show the loading of the page three times as well as the console errors.

      AIRAVATA-2165_firefox_network.png

      Attachments

        1. AIRAVATA-2165_firefox_network.png
          157 kB
          Marcus Christie

        Issue Links

          Activity

            People

              marcuschristie Marcus Christie
              marcuschristie Marcus Christie
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: