<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Page update indicator still visible after serving resources</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112489414" />
  <subtitle>Page update indicator still visible after serving resources</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112489414</id>
  <updated>2026-04-06T08:42:45Z</updated>
  <dc:date>2026-04-06T08:42:45Z</dc:date>
  <entry>
    <title>Page update indicator still visible after serving resources</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112489413" />
    <author>
      <name>Jan Tošovský</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112489413</id>
    <updated>2019-02-27T11:04:24Z</updated>
    <published>2019-02-27T11:04:24Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Dear All,&lt;br&gt;&lt;br&gt;in my case I am serving resource by two chained requests. Initialy I am getting a token via XHR and if I receive it, it is used for final downloading the resource.&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;function callServeResource(id) {

    AUI().use('aui-io-request', 'liferay-portlet-url', function(A) {
        A.io.request('&amp;lt;portlet:resourceurl id="installer-queue" /&amp;gt;', {
            method: 'post',
            data: {
                &amp;lt;portlet:namespace /&amp;gt;userId: &amp;amp;lt;%= user.getUserId() %&amp;amp;gt;,
                &amp;lt;portlet:namespace /&amp;gt;id: id
            },
            on: {
                success: function(e) {

                    var responseData = JSON.parse(this.get("responseData"));

                    if (responseData !== null) {
                        if (responseData.result) {
                            window.location = "/c/installers/get_file?id=" + id + "&amp;amp;amp;jobId=" + responseData.result + "&amp;amp;amp;userId=" + &amp;amp;lt;%= user.getUserId() %&amp;amp;gt;;

                        } else if (responseData.error) {
                            showAlert(responseData.error);
                        }
                    }
                },
                failure : function() {
                    showAlert("Bad request");
                }
            }
        });
    });
}
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;Even the file is downloaded successfully, I can still see that page progress strip at the top of the page.&lt;br&gt;&lt;br&gt;I suppose changing the window.location should be replaced by something better.&lt;br&gt;&lt;br&gt;Any advice?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Jan Tošovský</dc:creator>
    <dc:date>2019-02-27T11:04:24Z</dc:date>
  </entry>
</feed>
