Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-4101

Performance improvement for Collapsed Topics

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Deferred
    • Affects Version/s: 2.3.2, 2.4
    • Fix Version/s: None
    • Component/s: Course format: Topcoll
    • Labels:
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE

      Description

      In CONTRIB-4018:

      "Using ajax for every click creates extra unnecessary load on the server, we have 1000's of students and if they were all on a subject that was using collapsed topics, every time each one of them click on a collapsed topic it would send an ajax request to the server creating lots of overhead. Is there a way you can make the server side stuff optional, or even turn off?"

      The ability to turn off has been implemented. However, to reduce server load the web browser could be instructed to only update the state of the toggles when the user moves away from the course. This would be achieved through the use of an event such as 'onunload' or 'onbeforeunload'. However current browser support differs for these events and is not consistent. Therefore time needs to pass until a consistent method is determined, the events are fully supported by all or an alternative suggestion is provided.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gb2048 Gareth J Barnard
                Reporter:
                gb2048 Gareth J Barnard
                Participants:
                Component watchers:
                Gareth J Barnard
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: