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

Load the calendar blocks after page load

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.5
    • 3.4
    • Blocks, Calendar
    • MOODLE_34_STABLE
    • MOODLE_35_STABLE
    • MDL-60962-master
    • Hide

       Setup

      1. Download create_events.php to your moodle root folder.
      2. Open your terminal and go to your moodle root folder.
      3. Run the script to create a bunch of events:

        php create_events.php

      Logged in user

      1. Log in as admin
      2. Go to the calendar
      3. CONFIRM that the “MONTHLY VIEW” loads the events after the page has rendered (you should see the little loading symbol flash over it)
      4. Add a new site event for today
      5. After the MONTHLY VIEW block has finished loading, Hover on the day in the "MONTHLY VIEW" in which you created the site event.
      6. CONFIRM that you can see the event that you created.
      7. Go to the site home
      8. Turn editing on
      9. Add the calendar block
      10. Turn editing off
      11. Reload the page
      12. CONFIRM that the calendar block loads the events after the page has rendered
      13. CONFIRM that you see the site event in the calendar

      Logged out user

      1. Log out of the site
      2. CONFIRM that you still see the calendar block and that it doesn’t load after the page is rendered. Instead, the block will load its content as part of the page render.
      3. CONFIRM that you see the site event in the block
      Show
       Setup Download create_events.php to your moodle root folder. Open your terminal and go to your moodle root folder. Run the script to create a bunch of events: php create_events.php Logged in user Log in as admin Go to the calendar CONFIRM that the “MONTHLY VIEW” loads the events after the page has rendered (you should see the little loading symbol flash over it) Add a new site event for today After the MONTHLY VIEW block has finished loading, Hover on the day in the "MONTHLY VIEW" in which you created the site event. CONFIRM that you can see the event that you created. Go to the site home Turn editing on Add the calendar block Turn editing off Reload the page CONFIRM that the calendar block loads the events after the page has rendered CONFIRM that you see the site event in the calendar Logged out user Log out of the site CONFIRM that you still see the calendar block and that it doesn’t load after the page is rendered. Instead, the block will load its content as part of the page render. CONFIRM that you see the site event in the block

      We should load the calendar block and the 3 month block on the calendar page asynchronously after page load rather than blocking the page from rendering.

      Loading this content can be time consuming and it's likely not the primary focus of the page given it's a block so we shouldn't delay loading the page for it.

            ryanwyllie Ryan Wyllie
            ryanwyllie Ryan Wyllie
            Mihail Geshoski Mihail Geshoski
            Jun Pataleta Jun Pataleta
            Rayna Mae Jayco Rayna Mae Jayco
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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