Add an option to load a block's view asynchronously. Add this to the UI in the advanced dialog. Ensure that it propagates throughout versions, properly, etc... (Use block-specific container settings as a guide.) Enable block type's to specify this functionality with a default block controller property.
When rendering a block asynchronously, we should make it easy to theme the loading state.
Asynchronous blocks that are cacheable should cache the output of the post-load content. Meaning that if you come to a page that has no block in the cache, you'll get a loading animation and then the content of the block when the block is complete. But if the block is cached and you come back to the page, the content will immediately be there. You WON'T see a tiny animation and then the block content.
Add this option to the slow loading dashboard welcome blocks to improve performance.
Add an option to load a block's view asynchronously. Add this to the UI in the advanced dialog. Ensure that it propagates throughout versions, properly, etc... (Use block-specific container settings as a guide.) Enable block type's to specify this functionality with a default block controller property.
When rendering a block asynchronously, we should make it easy to theme the loading state.
Asynchronous blocks that are cacheable should cache the output of the post-load content. Meaning that if you come to a page that has no block in the cache, you'll get a loading animation and then the content of the block when the block is complete. But if the block is cached and you come back to the page, the content will immediately be there. You WON'T see a tiny animation and then the block content.
Add this option to the slow loading dashboard welcome blocks to improve performance.