Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-43430

sakai-i18n.js makes a lot of calls to the server, for the same translations

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 20.0, 21.0 [Tentative]
    • Fix Version/s: 20.1, 21.0 [Tentative]
    • Component/s: Web Components
    • Labels:
      None
    • 20 status:
      Resolved
    • Test Plan:
      Hide

      Clear your browser cache

      Login to Sakai

      Open the console and clear out your translation key, from local storage, for submission-messager.

      Click on the network tab in console, then on the XHR tab

      Now go into Gradebook, with some item columns and students.

      You should see only one request for the submission-message bundle (see screenshot for how it should look).

      Show
      Clear your browser cache Login to Sakai Open the console and clear out your translation key, from local storage, for submission-messager. Click on the network tab in console, then on the XHR tab Now go into Gradebook, with some item columns and students. You should see only one request for the submission-message bundle (see screenshot for how it should look).

      Description

      sakai-i18n.js makes a lot of calls to the server, for the same translations. This can happen if a component is loaded many times on a page, gradebook for example, and each of those instances retrieves its translations. Those fetches happen in parallel and are unaware of each other. After caching in localStorage, the requests stop, but there is always that initial hit with a new client.

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                a.fish@lancaster.ac.uk Adrian Fish
                Reporter:
                a.fish@lancaster.ac.uk Adrian Fish
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration