You appear to be a bot. Output may be restricted
Description
Mark akismet-frontend.js as deferred. Because nothing depends on it, it can run at any time after it's loaded, and the browser won't have to wait for it to load to continue parsing the rest of the page.
Usage
Akismet::set_form_js_async( $tag, $handle, $src );
Parameters
- $tag
- ( mixed ) required –
- $handle
- ( mixed ) required –
- $src
- ( mixed ) required –
Returns
void
Source
File name: akismet/class.akismet.php
Lines:
1 to 8 of 8
public static function set_form_js_async( $tag, $handle, $src ) { if ( 'akismet-frontend' !== $handle ) { return $tag; } return preg_replace( '/^<script /i', '<script defer ', $tag ); }