Improve page rendering speed by loading block contents via AJAX

Bug #1419399 reported by Aaron Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
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)
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
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/4251

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

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)
Changed in mahara:
status: In Progress → Fix Committed
tags: added: nominatedfeature
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.