Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

AJAX Placeholder

Security covered Under active development 29 sites

This module creates a render element that defers loading content until an AJAX request is made. This improves page performance and caching by loading content asynchronously, enhancing the user experience, especially on pages with a lot of content.

The AJAX Placeholder module provides a render element that will defer loading the content to an AJAX request, similar to how lazy builders work. This can greatly improve the performance and caching of pages. The main benefit over lazy builders and Bigpipe, is that the AJAX request will load asynchronously which will significantly improve the user experience when lots of render elements are placed on the same page.

Features

The module provides a new render element to load content via AJAX:

  $build['awesome'] = [
    '#type' => 'ajax_placeholder',
    '#callback' => ['mymodule.service:callback', [$arg1, $arg2]],
  ];

The module requires no configuration, and can be used by developers to improve the performance of pages that show lots of different content that can be hard to cache (like dashboards).

Drupal 10–11

Ask your assistant about AJAX Placeholder

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Jun 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
1.0.2 Stable 10–11 Jun 5, 2025
1.0.1 Stable 10–11 Jan 31, 2025
1.0.0 Stable 9–10 Jun 28, 2023
1.0.x-dev Dev 10–11 Jun 28, 2023