big_pipe_bypass_js.module
Same filename in other branches
Provides a way to bypass Big Pipe JavaScript.
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.
*/
/**
* 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.