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

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0
    • 1.9, 2.0
    • Performance
    • None
    • MOODLE_19_STABLE, MOODLE_20_STABLE
    • MOODLE_20_STABLE

      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.

        There are no Sub-Tasks for this issue.

            dougiamas Martin Dougiamas
            ganderson Gary Anderson (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.