Limit the number of load-heavy blocks on a page or use lazy-loading or both
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Suggestion from Robert:
We have some very load intensive blocks that work with a lot of JavaScript, e.g. the 'PDF' block and potentially also the 'External media' block. Placing more than a few (less than 10) PDF blocks on a page is fine, but more slows down pages a lot and is causing problems.
There are some options that we should investigate before making a final decision:
1. Limit the number of load heavy blocks on a page.
2. We might need to get a load on scrolling type thing working, eg the block wrappers load on page load but the content loads via ajax only when the block becomes visible to the viewport - because we use gridstack now things should expand horizontally / float upwards as we want
3. A combination of both.
With the progressive loading, we'd need to consider finding things in a page and what the trade-off could be if someone uses Ctrl+F. It shouldn't affect what is found via Elasticsearch.
See also https:/ /bugs.launchpad .net/mahara/ +bug/1987222