├── AsyncDeferScripts.php ├── README.md ├── composer.json └── functions.php /AsyncDeferScripts.php: -------------------------------------------------------------------------------- 1 | get_data( $handle, 'defer' ) ) { 18 | $tag = str_replace( '>get_data( $handle, 'async' ) ) { 26 | $tag = str_replace( '>add_data( 'recaptcha', 'async', true ); 35 | } ); 36 | ``` 37 | 38 | How to defer loading of a script: 39 | ```php 40 | add_data( 'recaptcha', 'defer', true ); 45 | } ); 46 | ``` 47 | 48 | ## Initialization 49 | 50 | In most cases, you can simply follow the installation instructions and things will just work. However, if you are including this library outside of a WordPress plugin or theme, you may have to manually initialize the class: 51 | 52 | ```php 53 |