Plugin Directory

Changeset 2299833


Ignore:
Timestamp:
05/07/2020 06:53:55 AM (6 years ago)
Author:
thanminhtu
Message:

Update ver 0.1.3

Location:
website-speed-optimization/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • website-speed-optimization/trunk/inc/class-wso.php

    r2183667 r2299833  
    107107                            add_action( 'wp_footer', array( $this, 'WSO_insert_css_inline_footer' ) );
    108108                        }
    109                     }
     109                    }                                       
    110110
    111111                    if ( isset($wso_all_options['wso-o-26']) && $wso_all_options['wso-o-26'] != 'true' ) { /* if cache js active */
    112112                        /* Function wso-o-19 */
    113113                        if ( $wso_all_options['wso-o-19'] == 'true' && $wso_all_options['wso-o-13'] == 'false') {
    114                             add_action( 'wp_enqueue_scripts', array( $this, 'WSO_setup_ini_script'), 9997);
     114                            add_action( 'wp_enqueue_scripts', array( $this, 'WSO_setup_ini_script'), 9997);                         
    115115
    116116                            if($wso_all_options['wso-o-17'] == 'true'){
     
    156156                        add_filter( 'script_loader_tag', array( $this, 'WSO_add_defer_async' ), 20, 3 );
    157157                    }
     158
     159                }
     160
     161                if ( isset($wso_all_options['wso-o-19']) && $wso_all_options['wso-o-19'] == 'true' ) {
     162                    add_action( 'wp_head', array( $this, 'WSO_insert_core_js' ), 1 );
    158163
    159164                }
     
    285290                    }
    286291                }
    287                 wp_enqueue_script( 'wso-jquery-core', $this->wso_url_jquery(), array(), '', false );
    288292            }
    289293
     
    302306
    303307                $this->WSO_remove_core_js();
    304 
    305                 wp_enqueue_script( 'wso-jquery-core', $this->wso_url_jquery(), array(), '', false );
    306308
    307309                $this->WSO_move_js_footer();
     
    664666            }
    665667
     668            function WSO_insert_core_js(){
     669                echo '<script type="text/javascript" charset="utf-8" defer>' . $this->WSO_inline_script($this->wso_url_jquery(), true) . '</script>';
     670            }
     671
    666672            /* ================= */
    667673            /* FUNC CACHE CSS JS */
  • website-speed-optimization/trunk/readme.txt

    r2183667 r2299833  
    44Donate link: https://www.paypal.me/tutm
    55Requires at least: 4.7
    6 Tested up to: 5.2.4
    7 Stable tag: 5.2.4
     6Tested up to: 5.4.1
     7Stable tag: 5.4.1
    88Requires PHP: 5.4
    99License: GPLv2 or later
     
    8585
    8686== Changelog ==
     87= 0.1.3 =
     88* Release date: 2020/05/07
     89* Fix icon dashicons
     90* Inline Jquery library
     91
    8792= 0.1.2 =
    88 
    8993* Release date: 2019/10/31
    9094* Update Logo, banner
  • website-speed-optimization/trunk/wso_styles.css

    r2183667 r2299833  
    154154    text-align: center;
    155155    line-height: 1;
     156    font-family: dashicons;
     157    font-size: 24px;
    156158}
    157159.wso_setting input[type=text]{
     
    198200}
    199201.wso-box .wso_setting input[type=checkbox]:checked:before{
     202    content: "\f147";
    200203    color: #fff;
    201204    margin: 0;
     
    203206    width: 25px;
    204207    height: 25px;
    205     transform: translate(-2px, 1px);
     208    transform: translate(-2px, 12px);
     209    font-family: dashicons;
     210    font-size: 24px;
    206211}
    207212a.wso_faq{
Note: See TracChangeset for help on using the changeset viewer.