Marcus Christie created AIRAVATA-2165:

             Summary: In Firefox, portal pages are loaded twice more, with 
                 Key: AIRAVATA-2165
             Project: Airavata
          Issue Type: Bug
            Reporter: Marcus Christie

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"

<script type="text/javascript"

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 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.

This message was sent by Atlassian JIRA

Reply via email to