Lazy builder placeholders should show a loading indicator

Created on 29 July 2020, over 4 years ago
Updated 15 February 2023, almost 2 years ago

Problem/Motivation

If a Lazy Builder runs into a problem, then there is no indication to the user that something has gone wrong. If most of the content is being loaded via lazy builders, it looks very confusing to see blank areas.

Steps to reproduce

Enable Big Pipe and use a lazily-built block. Simulate an error by throwing an exception in the block code.

Proposed resolution

Show a placeholder message, and make it possible to theme this.

Currently an animation can be added with CSS -- see https://www.lullabot.com/articles/quick-tip-add-a-loading-animation-for-... -- but it would be good to be able to theme this.

Remaining tasks

Figure out how to do it.
Do it.

User interface changes

Lazy builders will show some sort of loading indicator.

API changes

None.

Data model changes

None.

Release notes snippet

🐛 Bug report
Status

Closed: outdated

Version

10.1

Component
BigPipe 

Last updated 21 days ago

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024