Async JavaScript - Version 1.16.09.29

Version Description

Download this release

Release Info

Developer cloughit
Plugin Icon 128x128 Async JavaScript
Version 1.16.09.29
Comparing to
See all releases

Code changes from version 1.16.08.17 to 1.16.09.29

Files changed (2) hide show
  1. async-javascript.php +6 -2
  2. readme.txt +2 -2
async-javascript.php CHANGED
@@ -4,7 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
4
  Plugin Name: Async JavaScript
5
  Plugin URI: https://cloughit.com.au/product/async-javascript/
6
  Description: Async JavaScript adds a 'async' or 'defer' attribute to scripts loaded via wp_enqueue_script
7
- Version: 1.16.08.17
8
  Author: Clough I.T. Solutions
9
  Author URI: http://www.cloughit.com.au/
10
  Text Domain: async-javascript
@@ -23,7 +23,7 @@ add_action( 'admin_init', 'aj_admin_init' );
23
  function aj_admin_init() {
24
  define( 'AJ_PLUGIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
25
  define( 'AJ_PLUGIN_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
26
- define( 'AJ_VERSION', '1.16.08.17' );
27
  wp_register_style(
28
  'aj_admin_styles',
29
  plugins_url( '/css/admin.css', __FILE__ )
@@ -203,9 +203,13 @@ function async_javascript_admin() {
203
  add_filter( 'script_loader_tag', 'async_js', 10, 3 );
204
  function async_js( $tag, $handle, $src ) {
205
  $aj_enabled = ( get_option( 'aj_enabled' ) == 1 ) ? true : false;
 
206
  $aj_method = ( get_option( 'aj_method' ) != 'async' ) ? 'defer' : 'async';
 
207
  $aj_jquery = ( get_option( 'aj_jquery' ) ) ? get_option( 'aj_jquery' ) : 'same';
 
208
  $aj_exclusions = get_option( 'aj_exclusions' );
 
209
  $array_exclusions = !empty( $aj_exclusions ) ? explode( ',', $aj_exclusions ) : array();
210
  if ( false !== $aj_enabled && false === is_admin() ) {
211
  if ( is_array( $array_exclusions ) && !empty( $array_exclusions ) ) {
4
  Plugin Name: Async JavaScript
5
  Plugin URI: https://cloughit.com.au/product/async-javascript/
6
  Description: Async JavaScript adds a 'async' or 'defer' attribute to scripts loaded via wp_enqueue_script
7
+ Version: 1.16.09.29
8
  Author: Clough I.T. Solutions
9
  Author URI: http://www.cloughit.com.au/
10
  Text Domain: async-javascript
23
  function aj_admin_init() {
24
  define( 'AJ_PLUGIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
25
  define( 'AJ_PLUGIN_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
26
+ define( 'AJ_VERSION', '1.16.09.29' );
27
  wp_register_style(
28
  'aj_admin_styles',
29
  plugins_url( '/css/admin.css', __FILE__ )
203
  add_filter( 'script_loader_tag', 'async_js', 10, 3 );
204
  function async_js( $tag, $handle, $src ) {
205
  $aj_enabled = ( get_option( 'aj_enabled' ) == 1 ) ? true : false;
206
+ $aj_enabled = ( isset( $_GET['aj_enabled'] ) && $_GET['aj_enabled'] == 1 ) ? true : $aj_enabled;
207
  $aj_method = ( get_option( 'aj_method' ) != 'async' ) ? 'defer' : 'async';
208
+ $aj_method = ( isset( $_GET['aj_method'] ) ) ? $_GET['aj_method'] : $aj_method;
209
  $aj_jquery = ( get_option( 'aj_jquery' ) ) ? get_option( 'aj_jquery' ) : 'same';
210
+ $aj_jquery = ( isset( $_GET['aj_jquery'] ) ) ? $_GET['aj_jquery'] : $aj_jquery;
211
  $aj_exclusions = get_option( 'aj_exclusions' );
212
+ $aj_exclusions = ( isset( $_GET['aj_exclusions'] ) ) ? $_GET['aj_exclusions'] : $aj_exclusions;
213
  $array_exclusions = !empty( $aj_exclusions ) ? explode( ',', $aj_exclusions ) : array();
214
  if ( false !== $aj_enabled && false === is_admin() ) {
215
  if ( is_array( $array_exclusions ) && !empty( $array_exclusions ) ) {
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: (cloughit)
3
  Donate link: http://www.cloughit.com.au/donate/ (coming soon)
4
  Tags: async,javascript,google,pagespeed,js,speed,performance,boost,render,blocking,above-the-fold
5
  Requires at least: 2.8
6
- Tested up to: 4.6
7
- Stable tag: 1.16.08.17
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
3
  Donate link: http://www.cloughit.com.au/donate/ (coming soon)
4
  Tags: async,javascript,google,pagespeed,js,speed,performance,boost,render,blocking,above-the-fold
5
  Requires at least: 2.8
6
+ Tested up to: 4.6.1
7
+ Stable tag: 1.16.09.29
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10