The module provides additional functionality for handling css and javascript
assets in ajax requests. It adds all the necessary ajax commands and libraries
to the render array.

Main benefits of the module:

Example of usage

Use the ajax_assets_plus_example submodule as an example of usage. You can find the
test controller and javascript there. Also see the /tests folder.

Running javascript tests

To run the javascript tests the PhantomJS is required.

Instructions:

  1. Install PhantomJS.
  2. Start PhantomJS browser in the root folder of your Drupal 8 checkout: /path/to/phantomjs --ssl-protocol=any --ignore-ssl-errors=true vendor/jcalderonzumba/gastonjs/src/Client/main.js 8510 1024 768
  3. Start tests using PHPUnit.

Prerequisites

Attention: For views integration the Drupal core patch to fix Empty request in ViewExecutable::unserialize() on a cached ajax request is required.

Supporting organizations: 
Concept, Development

Project information

  • caution Seeking new maintainer
    The current maintainers are looking for new people to take ownership.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Project categories: Developer tools
  • Created by fago on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    There are currently no supported stable releases.

Releases