Improve page rendering speed by loading block contents via AJAX

Bug #1419399 reported by Aaron Wells on 2015-02-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Wishlist
Aaron Wells

Bug Description

The Mahara dashboard page can be quite slow to load on large Mahara sites, because it contains the "latest views" block by default, and this block runs some pretty big queries. Removing this block improves the rendering time of the Dashboard page considerably, and in fact removing all the blocks makes it render even faster!

We can't remove the blocks from the pages, but we can greatly improve the loading time of the page by simply providing placeholders for the blocks, and then loading the block contents with further AJAX requests. This will reduce the time before the user sees *something* on screen, and it will also reduce the time to get the whole page loaded, because the blocks can be generated in parallel instead of serially.

Aaron Wells (u-aaronw) on 2015-02-08
Changed in mahara:
importance: Undecided → Wishlist
status: New → In Progress
assignee: nobody → Aaron Wells (u-aaronw)
milestone: none → 15.04.0
tags: added: blocktypes performance

Reviewed: https://reviews.mahara.org/4251
Committed: http://gitorious.org/mahara/mahara/commit/54d47060bce4a4b0638b5ec67af9d1d7095112f6
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 54d47060bce4a4b0638b5ec67af9d1d7095112f6
Author: Aaron Wells <email address hidden>
Date: Sun Feb 8 18:42:38 2015 +1300

Load block contents by AJAX

Bug 1419399

Change-Id: Ia22577980bb67862f540a2ffc76dba54fc824aa5

Robert Lyon (robertl-9) on 2015-02-18
Changed in mahara:
status: In Progress → Fix Committed
tags: added: nominatedfeature
Robert Lyon (robertl-9) on 2015-04-17
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers