Plugin Directory

Changeset 1650123


Ignore:
Timestamp:
05/03/2017 07:23:01 AM (9 years ago)
Author:
cloughit
Message:

2.17.05.04

Location:
async-javascript/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • async-javascript/trunk/async-javascript.php

    r1650043 r1650123  
    55Plugin URI: https://cloughit.com.au/product/async-javascript/
    66Description: Async JavaScript adds a 'async' or 'defer' attribute to scripts loaded via wp_enqueue_script
    7 Version: 2.17.05.03
     7Version: 2.17.05.04
    88Author: Clough I.T. Solutions
    99Author URI: http://www.cloughit.com.au/
     
    1818 *
    1919 */
    20 add_action( 'admin_init', 'aj_admin_init' );
     20add_action( 'init', 'aj_admin_init' );
    2121function aj_admin_init() {
     22    define( 'AJ_TITLE', 'Async JavaScript' );
     23    define( 'AJ_ADMIN_MENU_SLUG', 'async-javascript' );
     24    define( 'AJ_ADMIN_ICON_URL', 'dashicons-performance' );
     25    define( 'AJ_ADMIN_POSITION', 3 );
     26    define( 'AJ_ADMIN_URL', trailingslashit( admin_url() ) );
    2227    define( 'AJ_PLUGIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
    2328    define( 'AJ_PLUGIN_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
    24     define( 'AJ_VERSION', '2.17.05.03' );
     29    define( 'AJ_VERSION', '2.17.05.04' );
    2530    require_once( AJ_PLUGIN_DIR . 'lib/gtmetrix/class.Services_WTF_Test.php' );
    26     wp_register_style(
     31}
     32/**
     33 *  aj_enqueue_scripts()
     34 *
     35 *  Register admin stylesheets and javascripts
     36 *
     37 */
     38add_action( 'wp_enqueue_scripts', 'aj_enqueue_scripts' );
     39add_action( 'admin_enqueue_scripts', 'aj_enqueue_scripts' );
     40function aj_enqueue_scripts() {
     41    wp_register_style(
    2742        'aj_admin_styles',
    2843        plugins_url( '/css/admin.min.css', __FILE__ )
     
    133148            $report_url = '<a href="' . $report . '" target="_blank">' . $report . '</a>';
    134149            ?>
    135             <p id="aj_latest_please_wait"><img src="<?php echo AJ_PLUGIN_URL; ?>images/loading.gif" title="Please Wait" alt="Please Wait" class="aj_step_img"></p>
    136150            <table id="aj_latest_gtmetrix_results" class="form-table aj-steps-table" width="100%" cellpadding="10">
    137151                <tr>
     
    269283                    <td scope="row" align="left" style="vertical-align: top !important;">
    270284                        <h3>Step 1: GTmetrix API Key</h3>
    271                         <p><strong><em>Please Note:</em></strong> You do not have to use this Wizard.  All settings can be changed under the <a href="<?php echo menu_page_url( AJ_ADMIN_MENU_SLUG, false ) . '&tab=settings'; ?>">Settings</a> tab.</p>
     285                        <p><strong><em>Please Note:</em></strong>You do not have to use this Wizard.  All settings can be changed under the <a href="<?php echo menu_page_url( AJ_ADMIN_MENU_SLUG, false ) . '&tab=settings'; ?>">Settings</a> tab.</p>
    272286                        <hr />
    273287                        <p>If you haven't already done so, grab an API Key from GTmetrix so that Async JavaScript can obtain your PageSpeed / YSlow results.  Here's how:</p>
  • async-javascript/trunk/css/admin.css

    r1650043 r1650123  
    4444}
    4545.aj_field_error {
    46     border:solid 1px #FF0000 !important;
     46    border:solid 1px #00ffff !important;
    4747}
    4848#aj_notification {
  • async-javascript/trunk/readme.txt

    r1650043 r1650123  
    33Donate link: http://www.cloughit.com.au/donate/ (coming soon)
    44Tags: async,javascript,google,pagespeed,js,speed,performance,boost,render,blocking,above-the-fold
    5 Requires at least: 4.4
     5Requires at least: 2.8
    66Tested up to: 4.7.4
    7 Stable tag: 2.17.04.25
     7Stable tag: 2.17.05.04
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    102102== Changelog ==
    103103
     104= 2.17.05.04 =
     105
     106* FIX: CSS / JS not loading
     107
    104108= 2.17.05.03 =
    105109
    106 * MOD: Add test to explain running Wizard is not mandatory
     110* MOD: Add test to advise running Wizard is not mandatory
    107111
    108112= 2.17.04.25 =
Note: See TracChangeset for help on using the changeset viewer.