Marcus Christie updated AIRAVATA-2165:
    Attachment: AIRAVATA-2165_firefox_network.png

> In Firefox, portal pages are loaded twice more, with errors
> -----------------------------------------------------------
>                 Key: AIRAVATA-2165
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2165
>             Project: Airavata
>          Issue Type: Bug
>            Reporter: Marcus Christie
>            Assignee: Marcus Christie
>         Attachments: AIRAVATA-2165_firefox_network.png
> 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
> {code:xml}
> <!-- Jira Issue Collector - Request Feature -->
> <script type="text/javascript"
>         src=""></script>
> <script type="text/javascript"
>         src=""></script>
> {code}
> 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
> {noformat}
> 09:04:27.443 SyntaxError: expected expression, got '<'1dashboard:1
> 09:04:27.891 SyntaxError: expected expression, got '<'1dashboard:1
> {noformat}
> 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.

This message was sent by Atlassian JIRA

Reply via email to