Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-12413

CSS and Javascript load times slow down initial load times significantly: should try to fix for version 2.0

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9, 2.0
    • Fix Version/s: 2.0
    • Component/s: Performance
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      The style sheet and Javascripts have become quite large, leading to long load times. I especially notice this in setting up Moodle on our sister school in Zambia which uses a satellite connection, but it is also obvious with modem connections where initial loads take nearly a minute. Even fast connections are too sluggish because of this.

      Granted, CSS and Javascript are cached, at least for a while. But on initial load, reloads, or when the cache expires, these large files to be resent.

      On 1.9 beta 2, here are the relative sizes:

      CSS: 101K; 21 seconds at 56K
      Javascript: 105K; 22 seconds at 56K
      HTML (login page) 8K; 2 seconds at 56K
      HTML images: 3K; 1 second at 56K

      It seems like looking into cutting down on CSS and Javascript sizes so that they load only what is needed (especially at startup) and for the site home page and then perhaps segmenting these features would increase the responsiveness of Moodle to users, especially with slower connections.

        Attachments

          Activity

            People

            Assignee:
            dougiamas Martin Dougiamas
            Reporter:
            ganderson Gary Anderson
            Tester:
            Nobody
            Participants:
            Component watchers:
            Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10