- 🇧🇬Bulgaria pfrenssen Sofia
This is indeed not the right approach. Closing in favor of the better solution proposed in [#330923].
After a cache clear the lists need to be retrieved from the Mailchimp API which is a slow operation. This is currently blocking the page from rendering until the API call is complete. In our site with 100+ lists this is taking over 30 seconds.
Result: every user that hits the front page in the first 30+ seconds gets a very slow loading page.
Render the block using the #lazy_builder
which is the standard solution offered by Drupal core for elements that are expensive to render.
The block will only be rendered after all the fast-loading elements in the page is rendered, which might cause some design elements to shift as soon as the block has finished rendering. The page will appear instantly and will not be stuck loading for a very long time for the first users that arrive after a cache clear.
For this to work effectively for authenticated users the Big Pipe module should be enabled. For anonymous users, the Sessionless BigPipe → module should also be enabled. If these module are not enabled no speedup will be apparent and the page will still load slowly, like before.
Closed: works as designed
2.0
Signup Module
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This is indeed not the right approach. Closing in favor of the better solution proposed in [#330923].