big_pipe_bypass_js.module
Same filename in other branches
File
-
core/
modules/ big_pipe/ tests/ modules/ big_pipe_bypass_js/ big_pipe_bypass_js.module
View source
<?php
/**
* @file
* Provides a way to bypass Big Pipe JavaScript.
*/
declare (strict_types=1);
/**
* Implements hook_library_info_alter().
*
* Disables Big Pipe JavaScript by removing the js file from the library.
*/
function big_pipe_bypass_js_library_info_alter(&$libraries, $extension) {
if ($extension === 'big_pipe') {
unset($libraries['big_pipe']['js']);
}
}
Functions
Title | Deprecated | Summary |
---|---|---|
big_pipe_bypass_js_library_info_alter | Implements hook_library_info_alter(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.