Layout Builder Ajax Blocks
This module allows blocks placed via Layout Builder to load asynchronously using JavaScript. It replaces blocks with placeholders, then loads the full content via AJAX, which can improve site performance.
This module provides the ability to load blocks that are placed on the page via layout builder to be loaded with Ajax.
This module will override the currently rendered block by added a placeholder. Then javascript loads the fully rendered block and replaces the placeholder.
This can increase performance on your site.
Requirements
Some modules that are provided by core - block, block_content, node, taxonomy, user and views.
Install
Installing through composer is recommended.
Usage
- Modify a layout and configure a block.
- Check the 'Enable Ajax for this block.' checkbox and save.
- Save the layout.
- Visit the page and confirm that the block is loading via ajax.
Depends on
Dependencies of the latest stable release
- block Drupal core
- block_content Drupal core
- layout_builder Drupal core
- node Drupal core
- taxonomy Drupal core
- user Drupal core
- views Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.