We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dc39f0 commit 12800a1Copy full SHA for 12800a1
action.php
@@ -35,13 +35,14 @@ public function register(Doku_Event_Handler $controller) {
35
*/
36
public function handle_tpl_metaheader_output(Doku_Event &$event, $param) {
37
global $ID;
38
+ global $conf;
39
40
// add script if user has better auth than AUTH_EDIT
41
if ( auth_quickaclcheck( $ID ) >= AUTH_EDIT ) {
42
$event->data['script'][] = array(
43
'type'=> 'text/javascript', 'charset'=> 'utf-8', '_data'=> '',
44
'src' => DOKU_BASE.'lib/exe/js.php'.'?t='.rawurlencode($conf['template']).'&type=admin&tseed='.$tseed
- );
45
+ ) + ($conf['defer_js'] ? [ 'defer' => 'defer'] : []);
46
}
47
48
// The first one is the static JavaScript block. PageSpeed says it would be good to print this first.
0 commit comments